From: Alex Paulusberger <alexp@meta-bit.com>
To: pgsql-admin@postgresql.org
Subject: Replace Into alla MySQL
Date: Tue, 29 Apr 2003 20:06:41 +1000
Message-ID: <3EAE4EB1.2020002@meta-bit.com> (raw)
Hi,
is there an easy way to mimic the handy REPLACE INTO function as
provided in MySQL.
REPLACE INTO is identical to INSERT except that if a value conflicts
with an existing unique
key, the new value replaces the old one.
Any advise is appreciated
Thanks
Alex
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: alexp@meta-bit.com
Subject: Re: Replace Into alla MySQL
In-Reply-To: <3EAE4EB1.2020002@meta-bit.com>
References: <3EAE4EB1.2020002@meta-bit.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