mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-23 16:57:19 +02:00
10 lines
216 B
Plaintext
10 lines
216 B
Plaintext
|
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;
|