- --rule from \d
- fragments_insert AS
- ON INSERT TO fragments
- WHERE new.fragment ~~ 'AA%'::text DO INSTEAD INSERT INTO "AA" (name, suffix,
- fragment)
- VALUES (new.name, new.suffix, new.fragment)
- --the insert I did
- test*=# insert into fragments (name, suffix, fragment) values ('WAALMART', 'com'
- , 'ALLMA');
- --select * from "AA" afterward
- test*=# select * from "AA";
- name | suffix | fragment
- ------+--------+----------
- (0 rows)
- Time: 0.000 ms
- test*=#
Posted by Anonymous on Thu 22nd Mar 12:24
download | new post
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.