日期:2014-05-16  浏览次数:20427 次

oracle自动插入100w行记录

1、打开ql/sql测试窗口


2、输入脚本

?

-- Created on 2012/11/7 by JERRY?

declare?

? -- Local variables here

? count integer;

begin

? -- Test statements here

? dbms_output.put_line('start:'||sysdate);

?

? for count in 1..1000000 loop

? ? insert into gather_hour a?

? ? ? ? ? ?values (sys_guid(), sysdate, sys_guid(), sys_guid(), 123, sys_guid(), 100022229999);

? ? commit;

? end loop;

?

? dbms_output.put_line('end:'||sysdate);

end;

?


?

3、执行脚本