select c.rowno from (select *,(@rowNO := @rowNo+1) AS rowno from profile a,(select @rowNO :=0) b order by coins desc) c where c.user_id = 10006;
转载于:https://www.cnblogs.com/lost-1987/articles/4164941.html
select c.rowno from (select *,(@rowNO := @rowNo+1) AS rowno from profile a,(select @rowNO :=0) b order by coins desc) c where c.user_id = 10006;
转载于:https://www.cnblogs.com/lost-1987/articles/4164941.html