|
|||
|
Hi,
1. is there any possibility to do SELECT foo FROM bar using Zend_DB_Table PHP Code:
PHP Code:
2. is there any possibility to do SELECT * FROM foo F JOIN bar B ON F.id = B.f_key using Zend_DB_Table i`m not interested in solutions like PHP Code:
please help me Last edited by G3LO : 08-10-2007 at 12:36 PM. Reason: i found code confusing |
|
|||
|
From your example, I assume "$bar" is the table (a child of Zend_Db_Table_Abstract). If so, you can use "select" function (returns a Zend_Db_Select object) of the tables adapter (Zend_Db_Adapter_Abstract) to construct the join you're after.
eg. PHP Code:
There's much more info on the select object in the Reference Guide anyway. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|