From: Joshua Tolley <eggyknap@gmail.com>
To: Andreas <maps.on@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: howto delete using a join ?
Date: Sat, 24 Jul 2010 05:47:24 -0600
Message-ID: <4c4ad2d6.0bb48c0a.7970.5678@mx.google.com> (raw)
In-Reply-To: <4C4A66A5.9070609@gmx.net>
References: <4C4A66A5.9070609@gmx.net>
On Sat, Jul 24, 2010 at 06:05:57AM +0200, Andreas wrote:
> Hi,
>
> is there a way to delete from a table using information from another
> table to decide if a row should be dropped?
Yes. See DELETE ... USING
http://www.postgresql.org/docs/8.4/interactive/sql-delete.html
--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.comAttachments:
[application/pgp-signature] signature.asc (196B, ../4c4ad2d6.0bb48c0a.7970.5678@mx.google.com/2-signature.asc)
download
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: eggyknap@gmail.com, maps.on@gmx.net
Subject: Re: howto delete using a join ?
In-Reply-To: <4c4ad2d6.0bb48c0a.7970.5678@mx.google.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