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...

Can we use commit or rollback in trigger? If yes, then how. Please explain with a suitable example?

Answer Posted / nitinsharma06

Yes we can, the trigger will get compile also if you use commit inside it and that is without using PRAGMA AUTONOUMS TRANSACTION, but when you execute the DML operation it fails to execute.

So in compilation you won't get any error and while execute trigger will throw error.

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 interval partition?

986


When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?

1045


Can we use two order by clause in query?

918


Is sql workbench free?

930


Explain the types of joins in sql?

962


Why do we need databases?

985


What is sql query limit?

911


what is the difference between cluster and non cluster index? : Sql dba

955


what is the use of friend function? : Sql dba

971


What is difference between nchar and nvarchar?

956


What are the types of views in sql?

1039


Is left join faster than inner join?

1063


What are the disadvantages of file system?

1163


How to move files from one directory to another in pl sql?

1128


Can there be more than one function with a similar name in a pl/sql block?

925