请问PL/SQL中如何批量执行?
答案:5 悬赏:80
解决时间 2021-01-07 03:09
- 提问者网友:我没有何以琛的痴心不悔
- 2021-01-06 20:43
请问PL/SQL中如何批量执行?
最佳答案
- 二级知识专家网友:迷人又混蛋
- 2021-01-06 20:56
begin
begin
insert into ....
values(.....)
exception
when others then
rollback;
end ;
begin
insert into ....
values(.....)
exception
when others then
rollback;
end ;
exception
when others then
dbms_output.putline(sqlerrm);
end;
begin
insert into ....
values(.....)
exception
when others then
rollback;
end ;
begin
insert into ....
values(.....)
exception
when others then
rollback;
end ;
exception
when others then
dbms_output.putline(sqlerrm);
end;
全部回答
- 1楼网友:一秋
- 2021-01-07 00:37
写存储过程就可以实现
- 2楼网友:不甚了了
- 2021-01-06 23:34
不如直接复制到sqlplus下直接运行,或是用toad按F5。。。
- 3楼网友:冷風如刀
- 2021-01-06 22:48
insert into table values(字段1,字段2,字段3),(字段1,字段2,字段3),(字段1,字段2,字段3),(字段1,字段2,字段3)。。。
- 4楼网友:長槍戰八方
- 2021-01-06 21:10
在pl/sql developer下?
如果是的话,打开sql windows,然后把sql语句复制进入,注意每条语句都需要加个‘;’然后F8执行,完了记得commit
如果是的话,打开sql windows,然后把sql语句复制进入,注意每条语句都需要加个‘;’然后F8执行,完了记得commit
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯