任何人都可以帮助我。我遇到了这个问题。
我尝试将此查询用于zend_db_select
,但无法完成:
SELECT * FROM
(SELECT a.id,a.title,a.type FROM a
UNION
SELECT b.id,b.title,b.type FROM b) as mix_table
LEFT JOIN c on ((c.id =mix_table.id and type= 0) OR (c.id=mix_table.id and type= 1))
BR。 感谢