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

how to create a test table in your mysql server? : Sql dba

1008


what happens if you no create privilege in a database? : Sql dba

1001


Differentiate between syntax and runtime errors.

1183


What is normalisation and its types?

1004


What is t-sql? : Transact sql

984


What is the reports view in oracle sql developer?

990


Can we edit a view in sql?

983


What is acid property in a database?

1032


What are the different dml commands in sql?

1171


What is thread join () in threading?

1013


What is a sql schema used for?

1100


Does truncate need commit?

942


What are the different parts of a package?

1115


how to drop an existing index in mysql? : Sql dba

1069


Are sql database names case sensitive?

1001