Using SQLCODE and SQLERRM Assignment Help

Assignment Help: >> Branching to or from an Exception Handler - Using SQLCODE and SQLERRM

Using SQLCODE and SQLERRM:

In an exception handler, the functions SQLERRM and SQLCODE can be used to search out that error has occurred and to get the related error message.

For internal exceptions, SQLCODE returns the number of the Oracle error. The number in which SQLCODE returns is negative unless the Oracle error is no data found, in that case SQLCODE returns +100. SQLERRM returns the corresponding error message. The message starts with the Oracle error code.

For user-defined exceptions, SQLCODE returns +1 and SQLERRM returns the message

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd