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、执行脚本


猜你喜欢

转载自jerry-chen.iteye.com/blog/1718475