Replace Into alla MySQL

From: Alex Paulusberger <alexp(at)meta-bit(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Replace Into alla MySQL
Date: 2003-04-29 10:06:41
Message-ID: 3EAE4EB1.2020002@meta-bit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Browse pgsql-admin by date

  From Date Subject
Next Message Rajesh Kumar Mallah 2003-04-29 11:28:58 Re: Logical Fields in postgres.
Previous Message Alex Paulusberger 2003-04-29 10:00:53 Replace Function alla MySQL