X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8BE0E4763C2 for ; Tue, 29 Apr 2003 06:07:24 -0400 (EDT) Received: from 216.127.68.117 (unknown [216.127.68.117]) by postgresql.org (Postfix) with SMTP id EFE0347632B for ; Tue, 29 Apr 2003 06:06:48 -0400 (EDT) Received: (qmail 28196 invoked from network); 29 Apr 2003 10:06:50 -0000 Received: from m061-005.nv.iinet.net.au (HELO meta-bit.com) (203.217.61.5) by localhost with SMTP; 29 Apr 2003 10:06:50 -0000 Message-ID: <3EAE4EB1.2020002@meta-bit.com> Date: Tue, 29 Apr 2003 20:06:41 +1000 From: Alex Paulusberger User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en, ja MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Replace Into alla MySQL Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-10.8 required=5.0 tests=BAYES_10,NO_DNS_FOR_FROM,USER_AGENT_MOZILLA_UA autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/378 X-Sequence-Number: 8533 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