SELECT ROW_NUMBER() Over (ORDER BY ID) as rowId ,* FROM table
rowId 即为行号。
本文共 145 字,大约阅读时间需要 1 分钟。
SELECT ROW_NUMBER() Over (ORDER BY ID) as rowId ,* FROM table
rowId 即为行号。
转载于:https://www.cnblogs.com/love-summer/archive/2011/11/22/2258586.html