嘗試使用Zend_Db_Select
複製以下查詢。任何指針?Zend DB選擇多表連接
SELECT
compounds.id as compounds_id,
reactions.id as reactions_id,
reaction_compound.number as reaction_compound_number
FROM compounds, reactions, reaction_compound
WHERE
compounds.id IN (68,74,112)
AND compounds.id = reaction_compound.compound
AND reactions.id = reaction_compound.reaction;
特別是我遇到的一些問題是在Zend中進行多表連接。我不知道如何使用查詢生成器跨多個表進行連接。
任何幫助表示讚賞!
Ĵ