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

Re: BUG #4295: DELETE WHERE Condition

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Cc: "Fred Perniss" <perniss(at)zks-gmbh(dot)de>
Subject: Re: BUG #4295: DELETE WHERE Condition
Date: 2008-07-11 08:39:58
Message-ID: 200807111040.00823.peter_e@gmx.net (view raw or flat)
Thread:
Lists: pgsql-bugs
Am Freitag, 11. Juli 2008 schrieb Fred Perniss:
> In Postgres the switch add_mising_from=on the SQL-Command
>
> DELETE FROM t2
> WHERE (t2.t2_t1_id=t1.t1_id)
> AND t1.t1_inhalt=5
> ;
>
> works (with message in Log).
>
> If the switch add_missing_from=off following Error-Message will be promted:
>
> Fehlender Eintrag in FROM Klausel für Tabelle t1

You want to use DELETE .. USING.  See the man page for details.

In response to

pgsql-bugs by date

Next:From: Michal SzelagDate: 2008-07-11 08:42:40
Subject: BUG #4296: Server crashes by restoring database
Previous:From: Fred PernissDate: 2008-07-11 07:34:16
Subject: BUG #4295: DELETE WHERE Condition

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