SQL SERVER把某一列更新为行号

declare @i int
set @i=0
update tb set [ID]=@i,@i=@i+1
原文地址:https://www.cnblogs.com/tohen/p/4193533.html