revilord
Programmer
- Oct 2, 2003
- 64
I have a table
col1 col2
one mandatory
two not mandatory
three not mandatory
four not mandatory
five mandatory
I am trying to write a trigger that will prevent uses from deleting or updating the mandatory records (rows 1 and 5). Something like
If you update or delete where col1 is one, five then rollback the transaction. I know this will hit me at 3 in the morning Sunday night but I would apprieciate some expertise here. Thanks
col1 col2
one mandatory
two not mandatory
three not mandatory
four not mandatory
five mandatory
I am trying to write a trigger that will prevent uses from deleting or updating the mandatory records (rows 1 and 5). Something like
If you update or delete where col1 is one, five then rollback the transaction. I know this will hit me at 3 in the morning Sunday night but I would apprieciate some expertise here. Thanks