Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Trigger to Prevent Update of Certain Columns
I am trying to prevent users from having the ability to update certain
columns in a table, such as the UNIQUEID. My thought is to build a
trigger that would replace the :new.UNIQUEID with the :old.UNIQUEID,
etc....
When I attempt to create the trigger I receive: "ORA-04082: NEW or OLD references not allowed in table level triggers"
Any ideas?
Here's my hack at it:
accept officename prompt "Enter OfficeName In UPPERCASE: "
spool create_&officename._divdata_trigger
--* --create/replace the trigger --*
spool off
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Mon Feb 07 2000 - 10:01:26 CST