2019-02-27
閱讀量:
945
sql查詢排名
問題描述:
請問下如圖所示數(shù)據(jù)表(test)中 查詢出小紅的分數(shù)(fenshu)排名的 sql語句怎么寫?

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






評論(0)


暫無數(shù)據(jù)
推薦帖子
0條評論
0條評論
0條評論
0條評論