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

how to convert dates to character strings? : Sql dba

735


How do you write an index?

705


What are user defined functions?

762


what are null values? : Sql dba

708


what are the 'mysql' command line arguments? : Sql dba

839






How does stored procedure reduce network traffic?

732


How to rename a table?

768


What is primary key and foreign key with example?

687


What is microsoft t sql?

678


What is over () in sql?

687


Can pl sql procedure have a return statement?

726


which types of join is used in sql widely? : Sql dba

715


how to enter numeric values as hex numbers? : Sql dba

771


Is nosql faster than sql?

747


Explain the methods used to protect source code of pl/sql.

736