3,491
社区成员
发帖
与我相关
我的任务
分享
cursor c is select * from B;
type t_type is table of pk_col%type;
t_array t_type;
open c;
loop;
fetch c bulk collect into t_array limit 3000;
forall i in t_array.first .. t_array.last
merge into A
using B...
on (... and B.pk=t_array(i) )
...
exit when c%notfound;
end loop;
close c;