Your technology certification is waiting. Enroll in Cloud Class ®
insert into tab values (1, 37);
if SQLCODE < 0 then
dbms_output.put_line('In if statement');
when dup_val_on_index then
dbms_output.put_line('In error handler');
Open in new window
In an exception handler, the SQLCODE function returns the numeric code of the exception being handled. (Outside an exception handler, SQLCODE returns 0.)
Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.