From: | "NTPT" <ntpt(at)centrum(dot)cz> |
---|---|
To: | Eduardo Pérez Ureta <eperez(at)it(dot)uc3m(dot)es>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: INSERT ON DUPLICATE KEY UPDATE |
Date: | 2004-06-19 03:57:31 |
Message-ID: | 003a01c455b1$8bb4f0c0$74beebd5@wbp1 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Something like
INSERT OR UPDATE TABLE foo SET bar=something WHERE condition
in meaning of "try to insert, if some unique constraint for some column (or
index) fail, make just an update" would be nice....
----- Original Message -----
From: "Eduardo Pérez Ureta" <eperez(at)it(dot)uc3m(dot)es>
To: <pgsql-general(at)postgresql(dot)org>
Sent: Friday, June 18, 2004 6:38 PM
Subject: [GENERAL] INSERT ON DUPLICATE KEY UPDATE
> How may I do a INSERT ON DUPLICATE KEY UPDATE like in mysql:
> http://dev.mysql.com/doc/mysql/en/INSERT.html
> ?
>
> Eduardo
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2004-06-19 11:08:15 | pgpool 2.0RC1 |
Previous Message | Luiz Rafael Culik Guimaraes | 2004-06-19 03:55:28 | Escape chars |