热线电话:13121318867

登录
2019-02-27 阅读量: 909
sql查询排名

问题描述:

请问下如图所示数据表(test)中 查询出小红的分数(fenshu)排名的 sql语句怎么写?

解决方法:

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

0.0000
3
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子