📜  行号是 sql server - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:00.390000             🧑  作者: Mango

代码示例1
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