Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 166 Bytes

178-rank-scores.md

File metadata and controls

13 lines (11 loc) · 166 Bytes

分数排名

mysql实现

select Score, (
select count(distinct Score)
from scores
where Score >= s.score
) as `Rank`
from scores s
order by Score desc