2019-03-11
閱讀量:
792
寫出發(fā)帖數(shù)最多的十個人名字的SQL
問題描述:
寫出發(fā)帖數(shù)最多的十個人名字的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)


暫無數(shù)據(jù)
推薦帖子
0條評論
0條評論
0條評論