select p1.name
    , (
select count(*)
        
from (
            
select *
            
from persons p2
            
where p2.age  > p1.age
            ) 
as foo
        ) 
+ 1 as rank
from persons p1
order by rank asc;

相关文章:

  • 2021-08-14
  • 2022-12-23
  • 2021-12-09
  • 2021-07-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案