I have a trigger on a table that's fired when the table gets updated.
Problem is, I need that trigger to fire only when a certain column is updated. Right now, the trigger runs when any column is updated (I learned the hard way).
How can I get the trigger to run only when a particular column is updated. For example:
col1 | col2
-----------
The trigger should run only if col1
is updated and not if any other column is updated. How can I do this?