Doubt regarding EXCEPTIONS

10 pts.
Tags:
PL/SQL
Hello, As the basic flow of a pl/sql block that contains a pl/sql block is like .... Suppose we have an anynomous block of code --------------------------------------------------------------------------------

Begin

....

....

insert;

update;

delete;

EXCEPTION ------Exceptions handled;

END;

/ -------------------------------------------------------------------------------- Now ...i know that all the DML's is goin to execute in a sequence. Now if my insert fails ..the 'update' & 'delete' .stmnts does not execute ... & the Control is passed to the Exception Block; But suppose ... if the Error occured in an Insert statement...But still i want to Execute the Update & delete dml's ..then what to do ....because ..once the Control passes to the exception block ..it will not come back to the 'EXECUTION' section.



Software/Hardware used:
xp

Answer Wiki

Thanks. We'll let you know when a new response is added.

You would have to use a separate exception handler for the INSERT statement.

Something like this:

<pre>BEGIN
….
….
<b> BEGIN
insert;
EXCEPTION
— do something
END; </b>
update;
delete;
EXCEPTION

END;</pre>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following