文章详情页
sql语句 - mysql中关联表查询问题
浏览:92日期:2022-06-20 15:52:47
问题描述
问题解答
回答1:select a.*,count(b.user_id) as stars from a,b where a.user_id = b.user_id group by user_id order by stars desc;
回答2:你这个用来获取用户列表是没问题的,我是要获取特定用户的排名。也就是怎么实现中间哪个select count功能。
相关文章:
排行榜
