中国开发网: 论坛: 程序员情感CBD: 贴子 172088
wzydf: 解决了
SELECT a. * , b.comment_post_id, count( * ) AS fc
FROM evo_posts a
INNER JOIN evo_comments b ON a.ID = b.comment_post_id
GROUP BY b.comment_post_id
ORDER BY fc DESC , post_issue_date DESC

谢谢haitao和pcplayer的帮助。
特别鸣谢haitao兄,我是源于你的思路才做出来的。

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录