what is the difference between pragma exception_init and
raise_application_error



what is the difference between pragma exception_init and raise_application_error..

Answer / 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

More SQL PLSQL Interview Questions

What is rename in sql?

0 Answers  


how to rename an existing column in a table? : Sql dba

0 Answers  


What is mutating error?

0 Answers  


What is the difference between SQL and PLSQL

4 Answers   IBM,


What is loop in pl sql?

0 Answers  






What does trigger mean in psychology?

0 Answers  


How do you modify a trigger?

0 Answers  


what is sql in mysql? : Sql dba

0 Answers  


how to fetch common records from two tables? : Sql dba

0 Answers  


When to use inner join and left join?

0 Answers  


What is a column in a table?

0 Answers  


Is delete faster than truncate?

0 Answers  


Categories