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

Does view store data in sql?

0 Answers  


What is the cause of mutating table error and how can we solve it?

0 Answers  


Can we write dml inside a function in sql server?

0 Answers  


What are the popular database management systems in the it industry?

0 Answers  


Explain select statements in sql?

0 Answers  


how view used for security purposes?

3 Answers   Glam India,


What is primary key and foreign key?

0 Answers  


What is clustered index sql?

0 Answers  


Hello All, Could any well write a query for the following scenario. Account(table name) No Name Amount 1 ABCD 2000.00 2 DEFG -2000.00 3 GHIJ 3000.50 4 JKLM 4000.00 5 MNOP 6000.00 O/p Should be in this format No Name Credit Debit 1 ABCD 2000.00 0 2 DEFG 0 -2000.00 3 GHIJ 3000.50 4 JKLM 0 -4000.00 5 MNOP 6000.00 o could any one give appropriate query for this Thnks in Advance Suneel Reddy

6 Answers   Target,


what are the forced views

6 Answers   Hexaware, TCS,


What found sql?

0 Answers  


How do I quit sql?

0 Answers  


Categories