0
如何將下面的代碼示例1添加到示例2,而不會搞亂我的查詢。MySQL查詢問題
例1
INNER JOIN users ON users_articles.user_id = users.user_id
例2
SELECT users.*
FROM users_articles
INNER JOIN articles_comments ON users_articles.id = articles_comments.article_id
INNER JOIN users ON articles_comments.user_id = users.user_id
WHERE users.active IS NULL
AND users.deletion = 0
ORDER BY articles_comments.date_created DESC
LIMIT 50
我不想顯示文章和其中'users.deletion = 1'的地方 – HELP 2010-10-12 00:34:38
我仍然可以得到它的工作:( – HELP 2010-10-12 00:43:03
它爲什麼不工作?它做什麼?你想要它做什麼? ?上面的代碼也應該拒絕被刪除的用戶,所以我也不太瞭解你的評論, – Amadan 2010-10-12 00:49:42