postgres/contrib/noupdate
Peter Eisentraut cb6edf9d56 Make sure -L and -I's for our source tree are always before system include
or library directories on the command line.
2001-02-20 19:20:30 +00:00
..
Makefile Make sure -L and -I's for our source tree are always before system include 2001-02-20 19:20:30 +00:00
README.noup Add missing /contrib files 2000-06-19 14:02:16 +00:00
noup.c Revise handling of oldstyle/newstyle functions per recent discussions 2000-11-20 20:36:57 +00:00
noup.sql.in Revise handling of oldstyle/newstyle functions per recent discussions 2000-11-20 20:36:57 +00:00

README.noup


noupdate
~~~~~~~~

 - trigger to prevent updates on single columns.


Example:
~~~~~~~

CREATE TABLE TEST ( COL1 INT, COL2 INT, COL3 INT );

CREATE TRIGGER BT BEFORE UPDATE ON TEST FOR EACH ROW
	EXECUTE PROCEDURE 
	noup ('COL1');

-- Now Try
INSERT INTO TEST VALUES (10,20,30);
UPDATE TEST SET COL1 = 5;