sqlserver中的普通循环

declare @i int   

set @i=0
while @i<5
begin
    update Student set demo = @i+5 where Uid=@i
    set @i=@i +1 
end

猜你喜欢

转载自www.cnblogs.com/wodemingtian/p/9044683.html