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 is bulk collect in oracle?
What are ACID properties in databases?
Explain about functional dependency and its relation with table design?
Do you know about aggregate functions? What is row num function? Can it be used all databases?
1 Answers Bravura Solutions, Cap Gemini,
How do you find out from the RMAN catalog if a particular archive log has been backed-up?
can a table has a column that has only view data and in other columns we can change data?
what is RAID technology?which is better RAID 0+1 OR RAID 5?
What happens if variable names collide with table/column names?
What is the sql query to concatenate column values from multiple rows in oracle?
SELECT THE RECORDS FROM 3 TABLES LIKE(T1,T2,T3) AND HOW CAN WE INSERT THAT RECORD IN ANOTHER TABLE LIKE(T4)?
How to create additional tablespaces for an new database?
What are the Characteristics of Data Files ?