PostgreSQLã®ãã©ã³ã¶ã¯ã·ã§ã³ã®ä»æ§ DBD::Pgã®è¬ è¬ã®è§£æ è¿½è¨ ã¡ã¢ PostgreSQLã®ãã©ã³ã¶ã¯ã·ã§ã³ã®ä»æ§ CREATE TABLE test(x INT UNIQUE); INSERT INTO test (x) VALUES (1); INSERT INTO test (x) VALUES (2); ã¨ãã¦ããã¾ãã ããã§ã => BEGIN; => INSERT INTO test (x) VALUES (3); INSERT 0 1 => INSERT INTO test (x) VALUES (1); ERROR: duplicate key value violates unique constraint "test_x_key" ã¨ããã¨ã¨ã©ã¼ã«ãªãã¾ããPostgreSQLã¯ãã©ã³ã¶ã¯ã·ã§ã³ä¸ã«ã¨ã©ã¼ãèµ·ããã¨ã以å¾ä½ããã¦ãã¨ã©ã¼ã«ãªãåãä»ã
{{#tags}}- {{label}}
{{/tags}}