sql 分组序号

select *,row_number() over(partition by item order by date  ) as t from table1

item  要group by的字段

原文地址:https://www.cnblogs.com/zhang9418hn/p/2670477.html