sql 中的while

declare @x int
set @x=1
while (@x<=100)
begin

print @x
set @x=@x+1
end

原文地址:https://www.cnblogs.com/xh0626/p/4500619.html