热线电话:13121318867

登录
2019-03-11 阅读量: 754
写出发帖数最多的十个人名字的SQL

问题描述:

写出发帖数最多的十个人名字的SQL,利用下表posts(id ,username, content)【id:序号,username:用户名,content:文章内容】

解决方法:

select username,count(username) as total from posts GROUP BY username order by total desc limit 10;

0.0000
3
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子