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

Explain how can you save or place your msg in a table?

601


What is the purpose of cursors in pl/sql?

650


What is mdf ldf and ndf?

569


What are the events on which a database trigger can be based?

604


What is the primary use of normalization?

535






What is sql used for?

652


What is normalization in sql?

533


What is duration in sql profiler trace?

563


What steps server process has to take to execute an update statement?

516


Is sql dba a good career? : SQL DBA

544


What is a sql schema used for?

555


Is mariadb nosql?

598


What are the different types of tables in sql?

495


Is oracle sql free?

554


How do I restart sql?

538