pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Joerdens <frank@joerdens.de>
To: Christof Glaser <gcg@gl.aser.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Subqueries in Non-SELECT Queries
Date: Mon, 18 Dec 2000 11:43:21 +0100
Message-ID: <3A3DEA49.EA53DCEB@joerdens.de> (raw)
References: <3A3CFFF9.3615E576@joerdens.de>
	<00121719325000.15220@pinguin>

Christof Glaser wrote:
[ . . . ]
> since the where clause compares just one field for equality. You might
> try IN instead of =, ie
> 
> update index set level = 2 where parentid in ( select id from
> index where level = 1 );

That was it! Thanks, Frank



view thread (4+ messages)

Message-ID: <3A3DEA49.EA53DCEB@joerdens.de>
Permalink:  ../3A3DEA49.EA53DCEB@joerdens.de/
Also on:    postgresql.org/message-id/3A3DEA49.EA53DCEB@joerdens.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 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-sql@postgresql.org
  Cc: frank@joerdens.de, gcg@gl.aser.de
  Subject: Re: Subqueries in Non-SELECT Queries
  In-Reply-To: <3A3DEA49.EA53DCEB@joerdens.de>
  References: <3A3CFFF9.3615E576@joerdens.de> <00121719325000.15220@pinguin> <3A3DEA49.EA53DCEB@joerdens.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