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


Please Help Members By Posting Answers For Below Questions

Cite the differences between execution of triggers and stored procedures?

841


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

767


What do you mean by table in sql?

699


What is the importance of sqlcode and sqlerrm?

1061


How do you run a query?

770


What is mdf ldf and ndf?

748


How do I remove sql plus from windows 10?

773


What is online transaction processing (oltp)?

752


What is natural join in sql?

714


Is join and inner join the same?

732


Explain two easy sql optimizations.

772


Can you have a foreign key without a primary key?

687


How many scalar data types are supported in pl/sql?

723


How do you truncate?

666


Can we write dml inside a function in sql server?

680