原文发布时间为:2008-10-26 —— 来源于本人的百度文章 [由搬家工具导入]

功能实现 名次可重复时,比如第一名有两个。。。

select   *,(select   count(distinct score) from   paper a where   a.score >= b.score ) mingci from   paper b order by score desc

如:

2   3    90   1

3    4   90   1

1   5    80   2

4   56   23 3

相关文章:

  • 2021-09-03
  • 2021-08-26
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2022-01-04
猜你喜欢
  • 2021-09-27
  • 2021-09-27
  • 2021-11-07
  • 2022-12-23
  • 2021-11-12
  • 2022-02-06
相关资源
相似解决方案