1

I am getting the ORA-06503: PL/SQL: Function returned without value error in a pl/sql trigger code. I actualy want to do some specific exception handling only if this error occurs else do the regular exception handling in my code. My question is how do I capture the specific ORA codes in exception blocks. Like If I want to add a if condition like

If(oracode = something) then ...
else ...

the SQLERRM gives the ora code with error message. how do I use this in IF condition ?

Need help with this

Thanks.

1 Answer 1

3

You are looking for SQLCODE - these are negative numbers when there is an error.

if SQLCODE = -6503 then  ....
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.