1
您好我需要用Zend_Db_Select編寫此sql,但我不知道如何編寫子查詢。我將不勝感激任何幫助。謝謝。如何在zend框架中使用子查詢執行查詢
SELECT * FROM advert WHERE categoryId
IN (
SELECT id
FROM `tree`
WHERE `lft` BETWEEN
(SELECT lft FROM tree WHERE id = '2') AND
(SELECT rgt FROM tree WHERE id = '2'))