pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume LELARGE <gleu@wanadoo.fr>
To: emmanuel@engelhart.org
Cc: pgsql-sql@postgresql.org
Subject: Re: UNION & LIMIT & ORDER BY
Date: Mon, 16 Jun 2003 19:37:36 +0000
Message-ID: <200306161937.36395.gleu@wanadoo.fr> (raw)
In-Reply-To: <20030614190127.51910c98.emmanuel@engelhart.org>
References: <20030614190127.51910c98.emmanuel@engelhart.org>

Hi,

Le Samedi 14 Juin 2003 17:01, Emmanuel Engelhart a écrit :
> [...]
Taken from the postgresql manual 
(http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=sql-select.html#SQL-UNION):
ORDER BY and LIMIT can be attached to a sub-expression if it is enclosed in 
parentheses. Without parentheses, these clauses will be taken to apply to the 
result of the UNION, not to its right-hand input expression.


Regards.


-- 
Guillaume <!-- http://absfr.tuxfamily.org/ -->.



view thread (2+ messages)

Message-ID: <200306161937.36395.gleu@wanadoo.fr>
Permalink:  ../200306161937.36395.gleu@wanadoo.fr/
Also on:    postgresql.org/message-id/200306161937.36395.gleu@wanadoo.fr

 · 

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: gleu@wanadoo.fr, emmanuel@engelhart.org
  Subject: Re: UNION & LIMIT & ORDER BY
  In-Reply-To: <200306161937.36395.gleu@wanadoo.fr>

* 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