sql server循环语句
2017-01-23 本文已影响296人
Eric_Zeng
declare @star int,@end int
set @star=1
set @end=10
while @star<=@end
begin
print @star
set @star=@star+1
end
declare @star int,@end int
set @star=1
set @end=10
while @star<=@end
begin
print @star
set @star=@star+1
end