Hi,
I want to add multiple Exception blocks for an Begin condition in PL/SQL stored procedure like :-
BEGIN
..
…
EXCEPTION
WHEN DUP_VAL_ON_INDEX THEN
DBMS_OUTPUT.PUT_LINE('Error occured at '||SQLCODE||SQLERRM);
Exception
when others then
dbms_output.put_line('Error occured at '||SQLCODE||SQLERRM);
How I can do it as it is not allowing me to do so? Please let me know how it can fixed? Also whether I can catch the unique constraint error/exception that is thrown in the procedure using DUP_VAL_ON_INDEX ? Please clarify
Thanks