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