sql server字段递增

declare @i int
set @i=0
update jxjy_Student set studentCardId=@i,@i=@i+1

猜你喜欢

转载自www.cnblogs.com/wangzhenghao/p/11235638.html