From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Bertheau <twanger@bluetwanger.de>
Cc: postgres sql list <pgsql-sql@postgresql.org>
Subject: Re: between syntax
Date: Fri, 16 Nov 2001 10:43:25 -0500
Message-ID: <26131.1005925405@sss.pgh.pa.us> (raw)
In-Reply-To: <1005910892.1215.2.camel@entwicklung01.cenes.de>
References: <1005910892.1215.2.camel@entwicklung01.cenes.de>
Markus Bertheau <twanger@bluetwanger.de> writes:
> shouldn't
> 'between 1 and 7'
> return the same results as
> 'between 7 and 1'
> ?
Nope. SQL92 section 8.3 defines BETWEEN thusly:
6) "X BETWEEN Y AND Z" is equivalent to "X>=Y AND X<=Z".
regards, tom lane
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, twanger@bluetwanger.de
Subject: Re: between syntax
In-Reply-To: <26131.1005925405@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