Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

multiple insert - handling exceptions

551628Apr 17 2007 — edited Apr 17 2007
Hi

I am doing a multiple insert from one schema to another.

INSERT INTO aa.a
SELECT *
FROM bb.a
WHERE ....

INSERT INTO aa.b
SELECT *
FROM bb.b
WHERE ....

I want to handling exception in each insert and needs to rollback the all the previous transactions if any of the insert fails.

Please tell me how to raise the exception in each insert to handle it ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2007
Added on Apr 17 2007
8 comments
352 views