今日用户发贴的数量排行及总发贴的数量排行统计

时间:2015/12/1 10:25:00来源:互联网 作者:flyso 点击: 1131 次

今日用户发贴的数量排行:  

select   userid,count(tid)     from   flyso_table  where   convert(char(10),dateandtime,102)=convert(char(10),getdate(),102)   group   by   userid   order   by   count(tid)   desc


总发贴的数量排行:  

select   userid,count(tid)     from   flyso_table    group   by   userid   order   by   count(tid)   desc   

Copyright © 2005 - 2016 flyso.cn. 飞搜 版权所有 鄂ICP备11002783号-3