Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Before or After Insert in Trigger?

goodluck247Aug 29 2016 — edited Aug 29 2016

Hello all,

I have an AFTER INSERT trigger which inserts data in table B when new rows are inserted in table A.

New rows are inserted in table A by clicking the Save button in Forms 10. There is a COMMIT statement in the PL/SQL code for this button.

My question is: since I would like to commit the inserts in table B as well, should I make the trigger a BEFORE INSERT trigger,

so that the COMMIT statement in the Save button commits both the insert in table A , as well as table B?

Thank you.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 26 2016
Added on Aug 29 2016
7 comments
2,244 views