将数据库中批量更新顺序号,顺序号顺序加1,语句如下。

declare @i int 
set @i=10
update #a set jhdj=@i,@i=@i+1

 

发表评论

/ 快捷键:Ctrl+Enter
加载中……