2008年12月16日星期二

[fw-db] Need Help with Constructing an SQL Object

I'm having a hard time translating this rather simple SQL statement into an
SQL object:

SELECT a*b AS product FROM table

I tried this but it doesn't work :

$table = new MyTable();
$select = $table->select()->from( $table, array('product' => 'a * b') );


Thanks for your help!

--
View this message in context: http://www.nabble.com/Need-Help-with-Constructing-an-SQL-Object-tp21033994p21033994.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: