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
Explain the advantages and disadvantages of stored procedure?
Explain two easy sql optimizations.
What is rank function in sql?
Write a query to find the names of users that begin with "um" in sql?
Can ddl statements be used in pl/sql?
What is the difference between distinct and unique in sql?
How to download oracle sql developer?
How can you know that statistics should be updated?
What is the difference between inner join and outer join?
What is use of trigger?
explain the difference between bool, tinyint and bit. : Sql dba
what is the syntax for using sql_variant_property? : Transact sql
Can delete statement be rollbacked?
Which operator is used in query for pattern matching?
What is sql in java?