标签:
declare @i int set @i=1 while @i<=10000000begin insert into dbo.Persons (Age,Sex,Grade,Name) values(cast( floor(rand()*100) as int),‘男‘,‘2‘,‘张三‘) set @i=@i+1
end
运行花费时间01:15:54
SQL-while begin end
原文地址:http://www.cnblogs.com/xvhk/p/5060261.html