17,377
社区成员
发帖
与我相关
我的任务
分享
Select username, votenum, (Select count(*) + 1 from tbl where votenum > t.votenum) from tbl t
order by votenum desc
select rn from
(select username,row_number() over(order by votenum) rn from tbl) t
where username='c'