中国开发网: 论坛: 程序员情感CBD: 贴子 172081
wzydf: 那么如何解决?仿佛in,exists也出错
SELECT comment_post_ID, count( * ) AS fc
FROM evo_comments
GROUP BY comment_post_id

以上可以,但如果写成select * from evo_posts a where a.ID in( SELECT comment_post_ID, count( * ) AS fc
FROM evo_comments
GROUP BY comment_post_id)
就会出错

相关信息:


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