v_num number:=1;
begin
loop
insert into t_user values(v_num, '李四'||v_num);
exit when v_num=1000000;
if mod(v_num, 10000)=0 then
commit;
end if;
v_num:=v_num+1;
end loop;
end;
/
i number := 1;
j number := 1;
count number := 1002275000; //基数, 一般都找现存表中最大值
begin
for i in 1..10000
loop
for j in 1..5000
loop
count := count +1;
insert into product(ID, GMT_CREATE, MT_MODIFIED, OMPANY_ID, ) values(count, to_timestamp(sysdate,'DD-MON-RR HH.MI.SS.FF AM'), o_timestamp(sysdate,'DD-MON-RR HH.MI.SS.FF AM'),i+10000 );
end loop;
commit;
end loop;
end;