2009年12月18日星期五

Re: [fw-db] Zend_Db_Select Question

begin:vcard
fn:Mark T. Dame
n:Dame;Mark
org:MFM Software, Inc.
adr;dom:;;11988 Tram Way;Cincinnati;OH;45241
email;internet:mdame@mfm.com
title:VP, Product Development
tel;work:1-513-618-5232
url:http://www.mfm.com/
version:2.1
end:vcard

Andre Fernandes wrote:

have you tried:

$select = $db->select()              ->from(array('z' => 'table_z'),                      array('col_a',                           'col_b',                                                     'col_c',                            'col_d' =>                               new Zend_Db_Expr('some value'))                     );

No, I hadn't tried that, but it didn't work.  It still wants to treat the second argument as a column name.


-m
--
MFM Software, Inc Mark T. Dame <mdame@mfm.com>
VP, Product Development
MFM Software, Inc. (http://www.mfm.com/)
"Genius is perseverance in disguise."

没有评论: