使用row_number()函数 1. select row_number() over(partition by 分组列 order by 排序列) as r_num from 1. select row_number() over( 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交