0
JOIN你會怎麼加入與Zend
SELECT movie.*, count(DISTINCT similar.tag) as shared_tags FROM movie INNER JOIN
(tagged AS this_movie INNER JOIN tagged AS similar USING (tag))
ON similar.movie = movie.id
WHERE this_movie.movie=<current_movie_id>
AND movie.id != this_movie.movie
GROUP BY movie.id
ORDER BY shared_tags DESC
它應該是Zend_Db_Select – 2010-11-21 15:11:10
由於任何原因,它是否需要是'Zend_Db_Select',因爲你可以運行查詢而不需要它是一個'Zend_Db_Select'對象 – 2010-12-10 20:58:44