Re: howto delete using a join ? - Mailing list pgsql-sql

From Joshua Tolley
Subject Re: howto delete using a join ?
Date
Msg-id 4c4ad2d6.0bb48c0a.7970.5678@mx.google.com
Whole thread Raw
In response to howto delete using a join ?  (Andreas <maps.on@gmx.net>)
List pgsql-sql
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.com

pgsql-sql by date:

Previous
From: Dmitriy Igrishin
Date:
Subject: Re: howto delete using a join ?
Next
From: Torsten Zühlsdorff
Date:
Subject: Re: [TRIGGER] Returning values from BEFORE UPDATE trigger, without using them