ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Databases  >>  SQL PLSQL
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
scope of exception handling in plsql
 Question Submitted By :: Gopakumar_ng
I also faced this Question!!     Rank Answer Posted By  
 
  Re: scope of exception handling in plsql
Answer
# 1
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 ?    1 Yes 0 No
Bala
 
  Re: scope of exception handling in plsql
Answer
# 2
Raising an error in PL/SQL execution block is nothing 
but "Execption". These are  of 2 types.
1.Predefined Exception 2. User defined Exception

Total 19+1 predefined exceptions are there.
19+1 means 19+When Others.
"When others" is  the last one.After "When Others" no 
exception will be raised.
Eg. for Predefined Exceptions: 
No_data_found,Dup_val_on_index,Invalid_cursor,Invalid_number
,Zero_Divide,.......,'When Others'..

Thank you,
Suresh.
 
Is This Answer Correct ?    1 Yes 0 No
Suresh Kumar Somayajula
 
 
 

 
 
 
Other SQL PLSQL Interview Questions
 
  Question Asked @ Answers
 
How do you handle exceptions. Give the syntax for it? Microsoft1
What are the cursor attributes used in PL/SQL ?  3
using subquery how can i calculate working days in a month? Spice-Telecom1
Differences between UNIQUE and DISTINCT in select statements Verinon-Technology-Solutions9
what is purge command explain about oracle performance tuning Accenture2
what is the difference between trigger and storedprocedures Tech-Mahindra9
In testing where do we use sql language and how it helps in testing?  2
how to retrieve only duplicate values in a table  1
How to access the current value and next value from a sequence?  3
will function return more than one value how Accenture4
Name the tables where characteristics of Package, procedure and functions are stored ?  3
hi this is nakka i have been looking for 1+ exp in oracle sql,plsql developer positions also have knoledge on d2k i am not getting proper walkins how to know it? where can i find it?  1
Can a view be updated/inserted/deleted?If Yes under what conditions?  3
how to retrive only second row from table? IBM13
Types of locks in database ? TCS3
wht is the difference between sqlaserver2000 and 2005 ABC1
Give the structure of the function ?  1
How to fetch the rows by dynamicaly passing table name through cursor?  2
How will we see framework of a table? Accenture2
what is global variable in package  1
 
For more SQL PLSQL Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com