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 / rj

Hello. if any one of them insert statement is wrong then no
data is inserted.
if you used commit statemnt then it also not work means no
data will be saved in table
Thanks
K.....

please write this example and run
i have only change data type in second insert statemnet


create or replace procedure test_emp
begin
insert into emp(EMPNO, ENAME)
values(1,'R');
insert into emp(EMPNO, ENAME)
values(TEST,'01');
insert into emp(EMPNO, ENAME)
values(2,'S');
commit;
end;

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a field in a database?

566


Advantages and disadvantages of stored procedure?

576


What is #table in sql?

518


How do you change a value in sql?

548


Is inner join same as self join?

576






What is over () in sql?

523


What is pl sql code?

585


How can a pl sql block be executed?

526


Why is normalization important?

533


What are the different dcl commands in sql?

556


What is the cause of mutating table error and how can we solve it?

594


What are packages in pl sql and also explain its advantages?

528


how to select first 5 records from a table? : Sql dba

507


What is the difference between execution of triggers and stored procedures?

548


What is trigger in pl sql?

555