统计的sql语句?
比较简单
我要统计论坛的用户都发了多少帖子,并且按照发帖进行排行。
select guser,count(id) as ph from guestbook group by guser order by ph
这样排序不对。。
------解决方案--------------------好歹给个表结构吧?
------解决方案--------------------select guser,count(id) as ph from guestbook group by guser order by count(id)