各种方式的排名结果:
1. > select t.*,dense_rank() over(order by t.account asc) 排名 from test t;
2. > select t.*,dense_rank() over(order by t.account desc) 排名 from test t;
3. > select t.*,rank() over(order by t.account asc) 排名 from test t;
4. > elect t.*,rank() over(order by t.account desc) 排名 from test t;
原文:https://www.cnblogs.com/LeeJ0/p/14538596.html