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!

Errors encountered in exception section of update statement?

msOct 23 2019 — edited Oct 23 2019

Hi all,

Consider this sample block structure below in our organnization.

Begin

Update table1

set col1=100

where id=100;

Exception

When others then

      v_error_code :=1

      v_error_msg := 'Error while updateing table1  '||sqlerrm;

End;

/

Why do we need an exception handling section in update/insert etc. What kind of common errors are encountered in an update exception handler section?

Thanks

Gautam

Comments
Post Details
Added on Oct 23 2019
7 comments
1,854 views