SQL怎么可以根据数据的上下级动态在前面加序号

比如
2025-02-25 07:28:07
推荐回答(1个)
回答1:

比如:select 学号,日期row_number() over(partition by 学号 order by 学号) from A表.