pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Manfred Koizar <mkoi-pg@aon.at>
Cc: Christoph Haller <ch@rodos.fzk.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Efficient DELETE Strategies
Date: Wed, 12 Jun 2002 10:49:26 -0400
Message-ID: <9663.1023893366@sss.pgh.pa.us> (raw)
In-Reply-To: <es9eguk7ov9644qo4qd341ess8ip8o51ok@4ax.com>
References: <200206110918.LAA20463@rodos>
	<18946.1023805720@sss.pgh.pa.us>
	<es9eguk7ov9644qo4qd341ess8ip8o51ok@4ax.com>

Manfred Koizar <mkoi-pg@aon.at> 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 statement: searched> ::=
              DELETE FROM <table name>
                [ WHERE <search condition> ]

         <delete statement: positioned> ::=
              DELETE FROM <table name>
                WHERE CURRENT OF <cursor name>

so I could see where a sloppy reader might get confused...

			regards, tom lane



view thread (21+ messages)  latest in thread

Message-ID: <9663.1023893366@sss.pgh.pa.us>
Permalink:  ../9663.1023893366@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9663.1023893366@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, mkoi-pg@aon.at, ch@rodos.fzk.de
  Subject: Re: Efficient DELETE Strategies
  In-Reply-To: <9663.1023893366@sss.pgh.pa.us>

* 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