SQL SERVER中直接循环写入数据 dn001 2009-06-08 15:18:33 declare @i intset @i=1while @i<30begin insert into test (userid) values(@i) set @i=@i+1end