Re: between syntax

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Markus Bertheau <twanger(at)bluetwanger(dot)de>
Cc: postgres sql list <pgsql-sql(at)postgresql(dot)org>
Subject: Re: between syntax
Date: 2001-11-16 16:23:29
Message-ID: 20011116082156.H18816-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 16 Nov 2001, Markus Bertheau wrote:

> Good day,
>
> shouldn't
>
> 'between 1 and 7'
>
> return the same results as
>
> 'between 7 and 1'

Don't think so, if I'm reading the spec correct, the conversion is:

6) "X BETWEEN Y AND Z" is equivalent to "X>=Y AND X<=Z".

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2001-11-16 16:38:03 Re: between syntax
Previous Message Jeff Eckermann 2001-11-16 16:19:42 Re: Insert values from one existing table into a new table.