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 many functions are there in sql?
what are the system privileges that are required by a schema owner (user) to create a trigger on a table?
Does inner join return duplicate rows?
Define SQL and state the differences between SQL and other conventional programming Languages?
What are predefined functions in sql?
Can I copy :old and :new pseudo-records in/to an oracle stored procedure?
What is the command used to fetch the first 5 characters of a string?
What is indexing oracle sql?
What is cascade in sql?
First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.
What is compute?
tell me about various levels of constraint. : Sql dba
How to know the last executed procedure?
what are null values? : Sql dba
What are the methods of filing?