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 show all tables with 'mysql'? : Sql dba

1155


What is recursive join in sql?

1065


Explain the working of primary key?

1150


Explian rowid, rownum? What are the psoducolumns we have?

1044


What is partition in sql query?

1043


What is the usage of distinct keyword?

1110


How do you identify a primary key?

1112


What is the use of & in pl sql?

1093


how to see the create table statement of an existing table? : Sql dba

1054


What is multiple columns?

1113


how to select unique records from a table? : Sql dba

1171


What are different types of functions in sql?

1050


What is the difference between having clause and where clause?

1108


How to check if a column is nullable before setting to nullable?

1173


What is the difference between subquery and correlated query?

1111