Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Trigger issue
I want some suggestion on creating a trigger for a
BEFORE INSERT OR UPDATE ON a table
My table has 3 columns:
col1 col2 col3
Here is the business rule I am trying to enforce during insert or update:
1. If all 3 columns are null, that's ok. No need for trigger. 2. If all 3 columns are NOT null, that's ok. No no need for trigger. 3. If one column is NOT null, then all 3 columns must be NOT null, thentrigger
must not permit insert or update.
When replying, please copy tyc77_at_hotmail.com Received on Tue Aug 10 1999 - 00:06:12 CDT