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
What is benefit of creating memory optimized table?
What is dcl in sql?
How do I write a sql query in pgadmin 4?
What is the use of desc in sql?
Which sql statement is used to delete data from a database?
Explain how to use transactions efficiently : transact sql
What is informix sql?
Can cursors be part of a trigger body?
how can we submit a form without a submit button? : Sql dba
What is tuple in sql?
discuss about myisam index statistics collection. : Sql dba
How do I partition in sql?
What is procedure function?
What is sql profiling in oracle?
what is difference between delete and truncate commands? : Sql dba