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

Can we use two order by clause in query?

929


Can I call a procedure inside a function?

958


How to call shell script from pl sql procedure?

1199


Is it possible for a table to have more than one foreign key?

989


Can you sum a count in sql?

962


Is sqlite free?

919


What is sql lookup?

872


what are the system privileges that are required by a schema owner (user) to create a trigger on a table?

1016


What is the least restrictive isolation level? : Transact sql

1010


What is the use of index in sql?

972


How do I find duplicates in a single column in sql?

958


What are the types of subqueries?

1026


describe transaction-safe table types in mysql : sql dba

957


what is a constraint? Tell me about its various levels. : Sql dba

945


Are there any features that are decommissioned in 11g that are not present in 11g?

2079