From: Jeff Kowalczyk <jtk@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: 'UPDATE OR INSERT' command
Date: Thu, 15 Jul 2004 13:20:57 -0500
Message-ID: <pan.2004.07.15.18.20.54.67962@yahoo.com> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jtk@yahoo.com
Subject: Re: 'UPDATE OR INSERT' command
In-Reply-To: <pan.2004.07.15.18.20.54.67962@yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox