2008年7月30日星期三

Re: [fw-db] Using the Zend_Db_Table to return referenced row values

dele454 wrote:
>
> How do you find out the query joinLeftUsing() spills out from all those
> function calls to your query building?
>

Once you have a select object that you have built with the procedural
interface:

$sql = $table->select()-> etc. etc. etc.

You can get the full SQL query two ways. One is by calling the __toString()
method on the object. This returns a string.

$sqlString = $sql->__toString();

The second way is by printing the select object. This implicitly calls
__toString().

print $sql . "\n";

Regards,
Bill Karwin
--
View this message in context: http://www.nabble.com/Using-the-Zend_Db_Table-to-return-referenced-row-values-tp18688983p18736499.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: