Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id E86DF4765E1 for ; Wed, 12 Jun 2002 10:52:30 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id A1582476891 for ; Wed, 12 Jun 2002 10:50:07 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g5CEnQb09666; Wed, 12 Jun 2002 10:49:26 -0400 (EDT) To: Manfred Koizar Cc: Christoph Haller , pgsql-sql@postgresql.org Subject: Re: Efficient DELETE Strategies In-reply-to: References: <200206110918.LAA20463@rodos> <18946.1023805720@sss.pgh.pa.us> Comments: In-reply-to Manfred Koizar message dated "Wed, 12 Jun 2002 16:03:39 +0200" Date: Wed, 12 Jun 2002 10:49:26 -0400 Message-ID: <9663.1023893366@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200206/148 X-Sequence-Number: 8113 Manfred Koizar writes: > Oracle basically supports (with slight variations between releases > 7/8/9): > DELETE [FROM] { table > | view > | ( subquery ) > } > [alias] [WHERE ...] [returning_clause] Bizarre. How are you supposed to delete from a subquery? > According to the "SQL Quick Syntax Guide" the WHERE clause is not > optional. Does anybody know, if this is a documentation bug? Probably. SQL92 saith: ::= DELETE FROM [ WHERE ] ::= DELETE FROM
WHERE CURRENT OF so I could see where a sloppy reader might get confused... regards, tom lane