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 an anonymous block?

1318


How do I use unicode codesets with the weblogic jdriver for oracle driver?

1119


What is Library Cache in Oracle?

1182


How is it different from a normal table?

1077


How to import one table back from a dump file?

1081


How to list all user accounts in oracle?

1061


How to recover a dropped table in oracle?

1090


Can u please explain me the Discussion on Except ,using cast like type cast. Question in the context of difference between two tables

2109


How do you get nicely formatted results from an oracle procedure that returns a reference cursor?

1116


How view is different from a table?

1076


How to define a variable of a specific record type?

1112


How to shutdown your 10g xe server?

1195


How to update values on multiple rows in oracle?

1072


what is the use of system.effective.date variable in oracle?

1159


What is an external table?

1077