批量插入:
declare @i int
declare @j int
declare @m int
declare @strsql(8000)
set @i=1
while(@j <=10000) --一万次 每次100条
set @m=1
begin
set @strsql= "insert into table(code) select 'sn ' " + right( "00000000 " + convert(varchar(8),@i),8)
while(@m <=100)
begin
set @i=@i+1
set @strsql= @strsql + " union select 'sn ' " + right( "00000000 " + convert(varchar(8),@i),8)
set @m=@m+1
end
exec(@strsql)
set @j=@j+1
end
柴油发电机
发电机
柴油机
柴油发电机
13636374743(上海)
13291526067(嘉兴)