📅  最后修改于: 2022-03-11 14:59:00.390000             🧑  作者: Mango
ROW_NUMBER() OVER (ORDER BY 'Column_Name' DESC) as ROW_NUMBER
select ROW_NUMBER() OVER(PARTITION BY WorkOrderID ORDER BY WorkOrderID ASC)
AS Row#, * from TableName