I have two tiggers on table1
:
- trigger #1 after update it updates the last modified date column in
table1
- trigger #2 after update if
col1
is0
it creates a log record intable2
So the problem is that when I set col1
to 0
trigger #2 creates the record properly in table2
, but as trigger #1 modifies the record again, trigger #2 creates another log record in table2
.
What I want is to prevent trigger #2 to be triggered when trigger #1 modifies any record.