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 run 'mysql' commands from a batch file? : Sql dba

1104


What is difference between ms sql and mysql?

954


What is difference between inner join and self join?

1078


Can a select statement fire a trigger?

1149


How do I clear the screen in sql plus?

1035


what are the limitations of identity column? : Transact sql

1101


how to use 'mysql' to run sql statements? : Sql dba

1042


What are the two different parts of the pl/sql packages?

1076


How much does sql certification cost?

1077


Name the operator which is used in the query for pattern matching?

935


Explain scalar functions in sql?

1054


Can we use loop in sql?

964


Define commit, rollback and savepoint?

1021


How do you explain an index?

1277


how to write date and time literals? : Sql dba

953