Skip site navigation (1) Skip section navigation (2)


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: (view raw, whole thread or download thread mbox)
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

pgsql-sql by date

Next:From: Ice PlanetDate: 2000-06-20 19:24:48
Subject: Type conversion
Previous:From: mikeoDate: 2000-06-20 17:09:56
Subject: Re: Re: Simple search question

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group