select ROW_NUMBER() OVER (order by 字段 desc) AS XUHAO, * from table ;

select RANK()  OVER (ORDER BY 字段 desc) AS XUHAO,* from table ;

select ROW_NUMBER() OVER () AS XUHAO, * from table ;


版权声明:本文为weixin_38668828原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_38668828/article/details/88944860