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 |
What is rename in sql?
how to rename an existing column in a table? : Sql dba
What is mutating error?
What is the difference between SQL and PLSQL
What is loop in pl sql?
What does trigger mean in psychology?
How do you modify a trigger?
what is sql in mysql? : Sql dba
how to fetch common records from two tables? : Sql dba
When to use inner join and left join?
What is a column in a table?
Is delete faster than truncate?