what is the difference between pragma exception_init and
raise_application_error

Answer Posted / welcomeashwin

PRAGMA EXCEPTION_INIT allows to associate an Oracle error
number with the name of a user-defined error. Here you need
to defined user-defined exception before it is used in
PRAGMA EXCEPTION_INIT. There are two parameters: exception
name and error code.

RAISE_APPLICATION_ERROR allows to create meaningful error
msg.it works with un-named user defined exceptions. It
associates the number of the error with the text of the
error. Therefore, the user-defined exception does nat have a
name associated with it. There are three parameter:
err_number, err_msg, keep-err

Is This Answer Correct ?    40 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you update a value in sql?

717


What is the difference between syntax error and runtime error?

815


what are date and time data types in mysql? : Sql dba

692


What is rank () in sql?

700


What are string functions in sql?

887






What is 19 null in sql?

703


Can you join views in sql?

723


What is serial sql?

701


How does pl sql work?

709


Can we use ddl statements in stored procedure sql server?

729


Explain two easy sql optimizations.

770


What are different types of indexes?

708


How can I see all tables in sql?

732


how to present a past time in hours, minutes and seconds? : Sql dba

741


Explain ddl statements in pl/sql?

738