--循环执行插入100000条数据
declare @ID int
begin
set @ID=1
while @ID<=100000
begin
insert into table(ID)
values(@ID)
set @[email protected] 1
end
end
declare @ID int
begin
set @ID=1
while @ID<=100000
begin
insert into table(ID)
values(@ID)
set @[email protected] 1
end
end