SQL Server中,测试插入大量数据,执行时间。 declare @begin_date datetime declare @end_date datetime select @begin_date = getdate() declare @counter int set @counter=0 while(@counter < 1000000) begin INSERT INTO testsql.dbo.Errorlog VALUES(''+@counter+'','b','c','d','e','f') set @counter=@counter + 1 end