Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

if i am using dml statement in function.
then i am writing select statement what was the output

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is archive log in Oracle?

1066


Can multiple columns be used in group by in oracle?

925


Explain constraining triggers.

1041


What is a snapshot log?

948


What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?

4471


How to rename a tablespace in oracle?

1032


Can you drop an index associated with a unique or primary key constraint?

964


What is an Oracle Instance?

1068


How to assign a table row to a record variable?

964


 What are the oracle DML commands possible through an update strategy?

1003


How to convert characters to dates in oracle?

1021


What is a subquery?

1055


How to add a new column to an existing table in oracle?

1068


What is the disadvantage of User defind function?

2238


How to end the current transaction in oracle?

961