declare @x int set @x=1 while (@x<=100)begin print @xset @x=@x+1end 转载于:https://www.cnblogs.com/xh0626/p/4500619.html