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!

Can a trigger trigger another trigger?

455796Mar 16 2006 — edited Mar 21 2006
I have TRG_B, a trigger associated with Table B, but the trigger references a column in Table B's parent Table, Table A. i.e. a Column in Table B is based on a value in a column in Table A.

So if anything is inserted or updated in Table B, the trigger TRG_B fires and everthing is fine. However, I also need TRG_B to be fired when Table A is updated.

Does anyone have a solution? Can something like this be done?:



CREATE OR REPLACE TRIGGER TRG_A BEFORE Update ON Table_A FOR EACH ROW
begin
for every child record in Table B:
call TRG_B;
end;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2006
Added on Mar 16 2006
9 comments
946 views