>
> I ask thee, which is easier to read and understand? ::
>
I agree completely; in cases where the complete SQL query is known, it's
much clearer to just write out the SQL by hand.
The Zend_Db_Select interface to build SQL queries procedurally is best used
when you need to build the query piece by piece as part of other application
logic. We've all had to write huge functions that append bits of string
together and hope it creates a valid SQL query in the end. Using
Zend_Db_Select makes it easier to do this.
When I wrote the docs on Zend_Db_Select, I tried to mention prominently that
using this interface is _not_ required, and in many situations it's both
easier and clearer to write the SQL literally.
Regards,
Bill Karwin
--
View this message in context: http://www.nabble.com/re-2-%3A--fw-db--Using-the-Zend_Db_Table-to-return-referenced-row-values-tp18728740p18736633.html
Sent from the Zend DB mailing list archive at Nabble.com.
没有评论:
发表评论