ããªã¬ã®ä½¿ãæ¹ ããªã¬ï¼TRIGGERï¼ã¯ããã¼ã¿ãã¼ã¹ã«æ´æ°ï¼insert/update/deleteï¼ããã£ãæããããããæå®ããé¢æ°ãå¼ã³åºãæ©è½ã§ãã ä¸ã¤ã®ã¬ã³ã¼ãã«å¯¾ããæ´æ°ã«ãã£ã¦ãä»ã®ãã¼ãã«ã«å¯¾ããæ´æ°ãåããã¼ãã«ã®å¥ã®ã¬ã³ã¼ãã«å¯¾ããæ´æ°ãå¿ è¦ã«ãªãå ´åçã«ããããèªåçã«è¡ãªãããã«ä½¿ããã¾ãã PostgreSQLã§ã¯ãCè¨èªã¾ãã¯PL/pgSQLã§å®ç¾©ããã¦ã¼ã¶å®ç¾©é¢æ°ããããªã¬ã§æå®ãããã¨ãã§ãã¾ãã PL/pgSQLã§å®ç¾©ããããªã¬ç¨ã®é¢æ°ã®createæã¨ãããªã¬ã®createæããä¸ã«ç¤ºãã¾ãã reate function set_koushin_datetime() returns opaque as ' begin new.koushin_datetime := ''now''; return new; end; ' language 'plp
{{#tags}}- {{label}}
{{/tags}}