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

Is it possible to use Transaction control Statements such a
ROLLBACK or COMMIT in Database Trigger ? Why ?

Answer Posted / nishi

We can't write COMMIT or ROLLBACK in triggers, because the triggering event may commit or may not. trigger commit or rollback is based on triggering event.

even we can't call a subprogram in a trigger which is having commit or rollback.

but we can achieve through pragma autonomous transaction.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use delete in merge statement?

997


What is the default isolation level in sql server? : Transact sql

961


What is sql profiler in oracle?

1012


How does join work in sql?

955


What is pl/sql table? Why it is used?

988


How to place comments in pl/sql?

1094


what are the type of locks ? : Sql dba

896


Explain about various levels of constraint.

880


What is mutating sql table?

1038


What is the most common sql injection tool?

991


What is the difference between numeric and autonumber?

938


What are triggers in sql?

969


Explain isolation levels. : Transact sql

1014


How do I order columns in sql?

907


Can we rollback delete command?

930