While inserting 10 rows using procedure, if 3rd entry is
having some error, what will be the output? How u will
handle that error?
Answer Posted / vaibhavi_dixit
When an exception is raised, oracle searches for the
handler in the PL/SQL block, if not then the exception is
propagated to the outer block.If the outer block handles
the exception, then the statments are commited (i.e 1 & 2),
the error message will be displayed and the control will
return to calling environment.
If the exception remains unhandled in all blocks ,then
before control returning to the calling environment,
statements i.e (1 & 2) will be rolled back.
VD
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
What are the types of join in sql?
Explain exception handling in pl/sql?
Write a program that shows the usage of while loop to calculate the average of user entered numbers and entry of more numbers are stopped by entering number 0?
Is sql a case sensitive language?
What is difference between procedure and trigger?
what are the 'mysql' command line arguments? : Sql dba
How can you load multi line records? : aql loader
What are the benefits of pl sql?
Write a unique difference between a function and a stored procedure.
how many ways we can we find the current date using mysql? : Sql dba
Can we use rowid as primary key?
What are the parameter modes supported by pl/sql?
how to create a test table in your mysql server? : Sql dba
What is %rowtype in pl sql?
Why do we need pl sql?