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 |
What are operators in oracle?
How to write date and time interval literals in oracle?
25. Display the client number and the value of the highest value order placed by that client.
Can a formula column referred to columns in higher group ?
What is oracle open database communication (odbc)?
What is a read only transaction in oracle?
Explain the truncate in oracle?
cursor attributes are %isopen ,%notfound,%found,%rowcount but is any attributes there other than these? please tell me asap ..
what is reindexing?
What will be the syntax to find current date and time in format "yyyy-mm-dd"?
Why do you use stored procedures and state some of its disadvantages?
what is exact difference between drop and truncate table.