Interviews4 answers
Can we use commit in trigger?
4 Answers
no.
Keerthi VenkatesanPosted Apr 20, 2016, 1:33 AM EDT
yes
Munesh SharmaPosted Apr 13, 2014, 9:31 AM EDT
Yes ,You can Commit inside the trigger.
But for this you have to make this trigger transaction to be a Independent transaction from its parent transaction, You can do this by using Pragma. Pragma AUTONOMOUS_TRANSACTION allow you to build the Independent(child) Transaction,started by another. Should be declare in DECLARE section of any subprogram.
Narendra KumarPosted Apr 2, 2014, 2:45 AM EDT


