oracle一次性查100万数据,Oracle快速插入100W数据
创建表create table TX_TEST(IDNUMBER not null,NAMEVARCHAR2(200),URLVARCHAR2(300),POSITIONVARCHAR2(200),CREATETIME DATE)编写脚本declare-- Local variables herecount integer;begin-- Te...
创建表
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,'https://www.baidu.com?id='||count,'Chinese-'||count,sysdate);
commit;
end loop;
dbms_output.put_line('end:'||sysdate);
end;
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)