Skip site navigation (1) Skip section navigation (2)

Re: DELETE using an outer join

From: Sergey Konoplev <sergey(dot)konoplev(at)postgresql-consulting(dot)com>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: DELETE using an outer join
Date: 2012-07-20 10:47:03
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-sql
On Fri, Jul 20, 2012 at 2:27 PM, Thomas Kellerer <spam_eater(at)gmx(dot)net> wrote:
>>>> Now I was wondering if a DELETE statement could be rewritten with the
>>>> same "strategy":
>>> Not at the moment.  There have been discussions of allowing the same
>>> table name to be respecified in USING, but there are complications.
>> However it works.
>> DELETE FROM some_table USING some_table AS s
>>      some_table.col1 = s.col1 AND
>>      some_table.col2 = s.col2 AND
>> <;
> But that's not an outer join

Oh, yes. I just lost the discussion line. Sorry.

Sergey Konoplev

a database architect, software developer at

Jabber: gray(dot)ru(at)gmail(dot)com Skype: gray-hemp Phone: +79160686204

In response to

pgsql-sql by date

Next:From: Tom LaneDate: 2012-07-20 13:51:15
Subject: Re: DELETE using an outer join
Previous:From: Thomas KellererDate: 2012-07-20 10:27:22
Subject: Re: DELETE using an outer join

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group