From: Geoff Ellis <geoff@metalogicplc.com>
To: pgsql-admin@postgresql.org
Subject: Testing for a record before update or insert without using a function.
Date: Thu, 18 Sep 2003 14:41:09 +0100
Message-ID: <006401c37dea$8656ca80$af1dc9c2@goofelvis> (raw)
Is it possible to test if a record exists in a table and then if it does do
an update on that table or if it doesn't do an insert ? I've looked around
the documents and it seems everything points towards a function?
Is this the only way or has someone done this before.....
TIA
Geoff
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: geoff@metalogicplc.com
Subject: Re: Testing for a record before update or insert without using a function.
In-Reply-To: <006401c37dea$8656ca80$af1dc9c2@goofelvis>
References: <006401c37dea$8656ca80$af1dc9c2@goofelvis>
* 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