Hi,
I want to make a trigger that validates the INSERT data. If the data does not meet the criterias the INSERT should be cancelled. What is the best approach?
TRIGGER AFTER and then DELETE inserted row?
I also need to make sure that the data cannot be changed by an UPDATE. I could do another trigger (because in this cause I do not want to delete the row, just not update it). Or can I check in the trigger wheater it is an UPDATE or an INSERT?
Is there a better way to do this? Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
I want to make a trigger that validates the INSERT data. If the data does not meet the criterias the INSERT should be cancelled. What is the best approach?
TRIGGER AFTER and then DELETE inserted row?
I also need to make sure that the data cannot be changed by an UPDATE. I could do another trigger (because in this cause I do not want to delete the row, just not update it). Or can I check in the trigger wheater it is an UPDATE or an INSERT?
Is there a better way to do this? Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'