pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Blaise Carrupt <bc@mjtsa.com>
To: pgsql-sql@postgresql.org
Subject: Re: interval query.
Date: Wed, 31 Jan 2001 12:06:30 GMT
Message-ID: <200101311206.MAA22252@mjtsa.com> (raw)

> Is there some way to make interval query? 
> 
> What I need is when the town's id=9999 I want to make query
> where id=9999 OR id=[3..12] for example. I could generate bunch of OR's
> like id=3 OR id=4 ... but is there some more elegant solution?
> 

This should work : WHERE id = 9999 OR id BETWEEN(3 AND 12).

Regards


______________
B. Carrupt



view thread (4+ messages)  latest in thread

Message-ID: <200101311206.MAA22252@mjtsa.com>
Permalink:  ../200101311206.MAA22252@mjtsa.com/
Also on:    postgresql.org/message-id/200101311206.MAA22252@mjtsa.com

 · 

reply

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: bc@mjtsa.com
  Subject: Re: interval query.
  In-Reply-To: <200101311206.MAA22252@mjtsa.com>
  References: <200101311206.MAA22252@mjtsa.com>

* 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