declare @i intset @i=1while @i<30begin insert into test (userid) values(@i) set @i=@i+1end
原文转自:http://www.ltesting.net