From: Gaetano Mendola <mendola@bigfoot.com>
To: Steven Rosenstein <srosenst@us.ibm.com>
Subject: Re: Are JOINs allowed with DELETE FROM
Date: Sun, 06 Feb 2005 18:36:03 +0100
Message-ID: <42065583.6010304@bigfoot.com> (raw)
In-Reply-To: <OF545A271F.B5FD775B-ON85256FA0.005EC116-85256FA0.005EDEB5@us.ibm.com>
References: <OF545A271F.B5FD775B-ON85256FA0.005EC116-85256FA0.005EDEB5@us.ibm.com>
Steven Rosenstein wrote:
> DELETE FROM detail JOIN summary ON (summary.id=detail.sum_id) WHERE
> collect_date='2005-02-05';
DELETE FROM detail WHERE detail.sum_id in ( select id from summary )
AND collect_date='2005-02-05';
Regards
Gaetano Mendola
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-performance@postgresql.org
Cc: mendola@bigfoot.com, srosenst@us.ibm.com
Subject: Re: Are JOINs allowed with DELETE FROM
In-Reply-To: <42065583.6010304@bigfoot.com>
* 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