设为首页 加入收藏

TOP

Oracle快速插入100W数据
2015-11-21 01:56:49 来源: 作者: 【 】 浏览:0
Tags:Oracle 快速 插入 100W 数据

创建表

?

create table TX_TEST
(
  ID         NUMBER not null,
  NAME       VARCHAR2(200),
  URL        VARCHAR2(300),
  POSITION   VARCHAR2(200),
  CREATETIME DATE
)

编写脚本

?

?

declare 
  -- Local variables here
  count integer;
begin
  -- Test statements here
  dbms_output.put_line('start:'||sysdate);
 
  for count in 1..1000000 loop
    insert into tx_test 
           values (count,'aa'||count,'http://www.baidu.com?id='||count,'Chinese-'||count,sysdate);
    commit;
  end loop;
 
  dbms_output.put_line('end:'||sysdate);
end;

?


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Oracle rac是不支持一个节点是rhe.. 下一篇ORACLE存储函数

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: