Re: BETWEEN

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joseph Shraibman <jks(at)selectacast(dot)net>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: BETWEEN
Date: 2000-06-20 18:16:53
Message-ID: 1150.961525013@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox
Thread:
Lists: pgsql-sql

Joseph Shraibman <jks(at)selectacast(dot)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

In response to

  • BETWEEN at 2000-06-16 19:09:03 from Joseph Shraibman

Browse pgsql-sql by date

  From Date Subject
Next Message Ice Planet 2000-06-20 19:24:48 Type conversion
Previous Message mikeo 2000-06-20 17:09:56 Re: Re: Simple search question