34,590
社区成员
发帖
与我相关
我的任务
分享
while 1=1
select * from 某系统表
嘻嘻 为什么死循环呢
create table a(id int,name varchar(20))
insert into a
select 1,'aa'
union all select 2,'bb'
union all select 3,'cc'
declare @b int
set @b=1
while @b<2
begin
select * from a
set @b=@b+0
end