ITeye博客

oracle自动插入100w行记录

jerry_chen · 2012-11-07 15:51 · database · 数据库 · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。