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
How can you view the errors encountered in a trigger?
What is difference between joins and union?
What are the different types of a subquery?
Is sql procedural language?
How do you declare a user-defined exception?
What types of commands can be executed in sql*plus?
what is the difference between blob and text? : Sql dba
What is primary key and foreign key?
How many developers work on postgresql?
What is row_number () in sql?
what are all the different types of indexes? : Sql dba
What is the difference between python and sql?
What action do you have to perform before retrieving data from the next result set of a stored procedure ?
What is procedure explain with program?
what's the difference between a primary key and a unique key? : Sql dba