sql while循环
declare @count int=1
while @count<=(select count(fwl) from #wlsNew)
begin
print('hello word!')
set @count=@count+1
end
while 条件
begin
执行的操作
set @count=@count+1
end
declare @count int=1
while @count<=(select count(fwl) from #wlsNew)
begin
print('hello word!')
set @count=@count+1
end
while 条件
begin
执行的操作
set @count=@count+1
end
发表评论