'UPDATE OR INSERT' command

From: Jeff Kowalczyk <jtk(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: 'UPDATE OR INSERT' command
Date: 2004-07-15 18:20:57
Message-ID: pan.2004.07.15.18.20.54.67962@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Is there a postgresql SQL idiom to perform an UPDATE, which becomes an
INSERT if the primary key does not exist?

I'm not sure I *should* use it in my application, I just want to know if
it can be done. Thanks.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Luis Sousa 2004-07-16 08:45:24 Problem in age on a dates interval
Previous Message Bruno Wolff III 2004-07-15 17:53:18 Re: 'UPDATE OR INSERT' command