scope of exception handling in plsql

Answer Posted / bala

Scope of exception in plsql is handled by Exception Block..
this is depends on the code you had written.
suppose u have created one more plsql block inside a plssql
block,if the inner block is not handled any exception then
the outer block will handle the exception by defining the
situation/even like "when others then / when value_error
then... etc "

Note.. when u r using "when Others then" all the exceptions
will handle by this exception.. Even there is no error the
plsql will return 0 for this exception that is executed by
default in a plsql block. So. be carefull while writting
this kind of exception ("When others then")

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is %type in pl sql?

536


When is a declare statement required?

667


What is partition in sql query?

509


What is procedure explain with program?

546


what is the bond code in materialized view?

2485






How to execute a stored procedure?

557


What are its different types of dbms?

531


What are pl/sql cursor exceptions?

567


how to create a new table by selecting rows from another table in mysql? : Sql dba

552


What is difference between table and view?

515


what is rdbms? : Sql dba

572


What is the use of partition by in sql?

509


What is the requirement of self-join?

536


What is vector point function?

560


how to get @@error and @@rowcount at the same time? : Sql dba

522