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 |
How do I recompile a procedure in oracle?
Can we save images in a database and if yes, how?
What is the Difference between 1) ER MODEL and Relational Model 2) Dense Index and Sparse Index
What is the scope of a local variable?
What are the various constraints used in oracle?
Hi this srilatha. I comlpeted my Oracle-hrms. can u provide me interview questions on Core hr, payroll,sshr,OLM etc..
What is an Index ? How it is implemented in Oracle Database ?
How to increment dates by 1 in oracle?
1:-How to write to update command in a procedure in oracle which update two different table at a time 2:-How to write the select command in a procedure in oracle which give multiple records
What is not equal to in oracle?
How to create an initialization parameter file?
What SQL query from v$session can you run to show how many sessions are logged in as a particular user account?