pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

paste-bin - collaborative debugging tool View Help


Posted by Anonymous on Thu 22nd Mar 12:24
download | new post

  1. --rule from \d
  2.  
  3.     fragments_insert AS
  4.     ON INSERT TO fragments
  5.    WHERE new.fragment ~~ 'AA%'::text DO INSTEAD  INSERT INTO "AA" (name, suffix,
  6.  fragment)
  7.   VALUES (new.name, new.suffix, new.fragment)
  8.  
  9. --the insert I did
  10. test*=# insert into fragments (name, suffix, fragment) values ('WAALMART', 'com'
  11. , 'ALLMA');
  12.  
  13. --select * from "AA" afterward
  14. test*=# select * from "AA";
  15.  name | suffix | fragment
  16. ------+--------+----------
  17. (0 rows)
  18.  
  19. Time: 0.000 ms
  20. test*=#

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.

Use syntax highlighting

To highlight particular lines, prefix each line with @@


Remember my settings