if i am using dml statement in function.
then i am writing select statement what was the output
Answers were Sorted based on User's Feedback
Answer / jayashree
DML cant be performed in Function. There would be no change.
Is This Answer Correct ? | 3 Yes | 3 No |
Answer / sandeeptiwari1111@gmail.com
We can perform DML operation in function but we can not Query that function in select statement.
But if you want to query it any how from select stmnt then you have to use Pragma_autonomous transaction .
create or replace function f2 return date as
Pragma Autonomous_Transaction;
begin
insert into Tab values(sysdate);
commit;
return sysdate-1;
end ;
Is This Answer Correct ? | 0 Yes | 0 No |
can a table has a column that has only view data and in other columns we can change data?
what are bitmap indexes? How does they work?
What are the uses of synonyms?
t1 col1 col2 nishi 5000 lucky 6700 akash 7000 i want that a query that when i insert 7000 it will show me data already present and data will not insert. if data is not present it will insert.
What is a subquery in oracle?
What is connection pooling in oracle?
12. Display the client name in upper case only and in lower case only.
What are the values that can be specified for OPTIMIZER MODE Parameter ?
you are a universe designer and report developer in BO, what type of information you gather from client?Briefly explain plz
i want department wise maxmum salary and empolyee name
I have a table that log salary-increase-process have fields: autoid, old_salary, acctno and table EMP: acctno, name, salary I want to list count increase-salary of employees, each have old_salary, new_salary. Help me with SELECT statement, please!
difference between imlicit cursor and explicit cursor ?