From: Joachim Trinkwitz <jtr@uni-bonn.de>
To: pgsql-sql@postgresql.org
Subject: INSERT only under certain conditions (SELECT)
Date: 08 Jul 2002 03:18:33 +0200
Message-ID: <874rfb6mqe.fsf@wabe.germanistik.uni-bonn.de> (raw)
Hi,
I want to insert a row only under condition that there isn't already
another row with similar values -- something like a INSERT INTO
... WHERE NOT EXISTS (SELECT ...)?
Hoping for help,
joachim
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: jtr@uni-bonn.de
Subject: Re: INSERT only under certain conditions (SELECT)
In-Reply-To: <874rfb6mqe.fsf@wabe.germanistik.uni-bonn.de>
* 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