bulk collect forall通过limit批量提交
来源:互联网 发布:淘宝菲慕最出名模特 编辑:程序博客网 时间:2024/05/27 00:31
declare
type forall_table is table of tb1%rowtype;
test_table forall_table;
cursor c1 is select *
from infores_nb1.tb1 a
where exists (select 1
from infores_nb1.t2 b
where a.subscode = b.worksheetcode)
and a.intftype in ('resourceConfig', 'resourceRollback')
and a.succeed = 1;
begin
open c1;
loop
fetch c1 bulk collect into test_table limit 1000;--1000行提交一次;
forall idx in test_table.first..test_table.last
insert into tb1_tmp values test_table(idx);
commit;
exit when c1%notfound;
end loop;
close c1;
exception
when others then
rollback;
end;
type forall_table is table of tb1%rowtype;
test_table forall_table;
cursor c1 is select *
from infores_nb1.tb1 a
where exists (select 1
from infores_nb1.t2 b
where a.subscode = b.worksheetcode)
and a.intftype in ('resourceConfig', 'resourceRollback')
and a.succeed = 1;
begin
open c1;
loop
fetch c1 bulk collect into test_table limit 1000;--1000行提交一次;
forall idx in test_table.first..test_table.last
insert into tb1_tmp values test_table(idx);
commit;
exit when c1%notfound;
end loop;
close c1;
exception
when others then
rollback;
end;
- bulk collect forall通过limit批量提交
- bulk collect,forall,fetch..limit
- bulk collect,forall,fetch..limit
- oracle 使用BULK COLLECT+FORALL加速批量提交
- bulk collect limit和 forall 用法
- ORACLE 批量绑定 FORALL 与 BULK COLLECT
- oracle10g批量绑定forall bulk collect
- ORACLE批量绑定FORALL与BULK COLLECT
- ORACLE批量绑定FORALL与BULK COLLECT
- ORACLE批量绑定FORALL与BULK COLLECT
- ORACLE批量绑定FORALL与BULK COLLECT
- ORACLE批量绑定FORALL与BULK COLLECT
- ORACLE批量绑定FORALL与BULK COLLECT
- ORACLE批量绑定FORALL与BULK COLLECT
- 批量执行 bulk collect与forall用法
- ORACLE批量绑定FORALL与BULK COLLECT
- orcle 批量提取和批量插入 BULK COLLECT and FORALL
- forall and bulk collect
- OpenCV控制摄像头实现拍照
- sql基本语法select、insert、update、delete、distinct等 .
- 谷歌分析工具中跳出率、退出率、二跳率的含义
- Linux下的多线程编程
- ArrayAdapter和BaseAdapter的区别
- bulk collect forall通过limit批量提交
- java追加内容到文件末尾
- Mybatis批量更新
- Telerik Silverlight 之Charting控件的使用
- BEC 加油!
- attempted to assign id from null one-to-one property:
- Bash中使用多行注释的方法(Here Documents)
- 英语练习77 You ought to learn swim
- C++头文件的包含顺序研究 (转)