pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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





view thread (5+ messages)  latest in thread

Message-ID: <874rfb6mqe.fsf@wabe.germanistik.uni-bonn.de>
Permalink:  ../874rfb6mqe.fsf@wabe.germanistik.uni-bonn.de/
Also on:    postgresql.org/message-id/874rfb6mqe.fsf@wabe.germanistik.uni-bonn.de

 · 

reply

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