mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-10 21:27:36 +08:00
7 lines
145 B
SQL
7 lines
145 B
SQL
CREATE TABLE TBL1 (i int4);
|
|
|
|
CREATE TABLE TBL2 (i int4);
|
|
|
|
CREATE RULE r1 AS ON INSERT TO TBL1 DO
|
|
(INSERT INTO TBL2 VALUES (new.i); NOTIFY TBL2);
|