`
jerry_chen
  • 浏览: 280898 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论

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


  • 大小: 17 KB
  • 大小: 30.8 KB
  • 大小: 8.2 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics