2019-02-27
阅读量:
909
sql查询排名
问题描述:
请问下如图所示数据表(test)中 查询出小红的分数(fenshu)排名的 sql语句怎么写?

解决方法:
select count(id)+1 as '排名' from test where fenshu > (select fenshu from test where name = '小红');






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论