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 #table in sql?

1082


Does mysql support pl sql?

1155


what is the difference between clustered and non clustered index in sql? : Sql dba

1117


Does db2 use sql?

934


What is self-join and what is the requirement of self-join?

1144


How to find 3rd highest salary of an employee from the employee table in sql?

1075


What is the need of merge statement?

1031


What are character functions?

1079


What are operators available in sql?

1036


Explain two easy sql optimizations.

1004


What is a unique key and primary key and foreign key?

966


Why join is faster than subquery?

1103


What is string join?

969


what is error ora-03113: end-of-file on communication channel?

1152


What is the difference between inner join and natural join?

997