sql 分组序号 select *,row_number() over(partition by item order by date ) as t from table1 item 要group by的字段