mysql排名查询

查出排名

 

set @row_num = 0;(select *,@row_num:=@row_num+1 as n from activity_items order by num DESC limit 0,10);

posted on 2019-06-05 14:42  sam.xiong  阅读(422)  评论(0)    收藏  举报

导航