From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joseph Shraibman <jks@selectacast.net>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: BETWEEN
Date: Tue, 20 Jun 2000 14:16:53 -0400
Message-ID: <1150.961525013@sss.pgh.pa.us> (raw)
In-Reply-To: <394A7B4F.6E46321B@selectacast.net>
References: <394A7B4F.6E46321B@selectacast.net>
Joseph Shraibman <jks@selectacast.net> writes:
> Why is BETWEEN inclusive?
Because the SQL92 spec says so:
6) "X BETWEEN Y AND Z" is equivalent to "X>=Y AND X<=Z".
> I had assumed that it was like the english
> between, which is exclusive.
That's debatable...
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, jks@selectacast.net
Subject: Re: BETWEEN
In-Reply-To: <1150.961525013@sss.pgh.pa.us>
References: <394A7B4F.6E46321B@selectacast.net> <1150.961525013@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