I'm trying to write an update trigger for use on a 2-column composite key. This has to be easier then I'm wondering.
Anyway, if I use the statement...
"IF UPDATE(Column1) AND UPDATE(Column2)..."
then it is required that both columns be updated, otherwise the trigger won't fire.
If I use the statement...
"IF UPDATE(Column1) OR UPDATE(Column2)..."
This seems like it would work, right? Or is there another way of handling this?
I just want to know if I'm using the correct approach to the problem.
Thanks.
Anyway, if I use the statement...
"IF UPDATE(Column1) AND UPDATE(Column2)..."
then it is required that both columns be updated, otherwise the trigger won't fire.
If I use the statement...
"IF UPDATE(Column1) OR UPDATE(Column2)..."
This seems like it would work, right? Or is there another way of handling this?
I just want to know if I'm using the correct approach to the problem.
Thanks.