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 clause? : Sql dba

583


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

516


Does pl/sql support create command?

574


does sql support programming? : Sql dba

605


Why stored procedures are faster than query?

566






How can we make an if statement within a select statement?

539


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

628


What are some emotional triggers?

568


Which is faster subquery or join?

658


What is a pdo connection?

512


What is database white box testing and black box testing?

634


Is natural join and inner join same?

487


Is sql procedural language?

550


How to run pl sql program in mysql?

510


How to install oracle sql developer?

565