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 / aravinda

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 ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is nvarchar max in sql?

1072


What does the argument [or replace] do?

1125


Why we use sql profiler?

1019


What is dml with example?

1154


What packages are available to pl/sql developers?

1107


Describe sql comments?

1105


what are the properties and different types of sub-queries? : Sql dba

1072


how many columns can be used for creating index? : Sql dba

984


How you can copy a file to file content and file to pl/sql table in advance pl/sql?

1182


Can we use commit inside a trigger?

1143


what are myisam tables? : Sql dba

1075


What is trigger explain with example?

1088


Can a table contain multiple foreign key’s?

1047


explain advantages of myisam over innodb? : Sql dba

1109


What is a temporal table?

975