From: Jasen Betts <jasen@xnet.co.nz>
To: pgsql-sql@postgresql.org
Subject: Re: DELETE WHERE EXISTS unexpected results
Date: 2 Dec 2010 07:47:09 GMT
Message-ID: <id7itt$69m$3@reversiblemaps.ath.cx> (raw)
References: <OF34A9AF8F.539E0789-ON852577EB.0077F498-852577EB.007A650B@us.ibm.com>
On 2010-11-30, Jeff Bland <bland@us.ibm.com> wrote:
> This is a multipart message in MIME format.
> --=_alternative 007A6509852577EB_=
> Content-Type: text/plain; charset="US-ASCII"
>
> I want to delete certain rows from table USER_TBL.
> Two tables are involved. USER_TBL and OWNER_TBL.
delete ... using was invented for this purpose.
> In the end I expect the USER_TBL to not contain the 3 HOME entries.
> But what is happening is the whole USER_TBL is empty after the query.
your subselect is being effected by the table used in the delete.
--
⚂⚃ 100% natural
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: jasen@xnet.co.nz
Subject: Re: DELETE WHERE EXISTS unexpected results
In-Reply-To: <id7itt$69m$3@reversiblemaps.ath.cx>
* 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