Sunday, October 9, 2011

What are SQLCODE and SQLERRM and why are they important for PL/SQL developers?

2 comments:

  1. SQLCODE returns the value of the error number for the last error encountered. The SQLERRM returns the actual error message for the last error encountered. They can be used in exception handling to report, or, store in an error log table, the error that occurred in the code. These are especially useful for the WHEN OTHERS exception.

    ReplyDelete
  2. How to find the 2nd max salary using trigger???

    ReplyDelete