pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jie Liang <jliang@ipinc.com>
To: Antti Linno <alligator@all.ee>
Cc: pgsql-sql@postgresql.org
Subject: Re: interval query.
Date: Wed, 31 Jan 2001 09:48:20 -0800 (PST)
Message-ID: <Pine.BSF.4.10.10101310946410.37554-100000@tidal.ipinc.com> (raw)
In-Reply-To: <Pine.LNX.4.04.10101311137420.1158-100000@all.ee>


Hi,

where id=9999 or id between 3 and 12;

or

where id in (3,4,5,6,7,8,9,10,11,12,9999);

Jie LIANG

Internet Products Inc.

10350 Science Center Drive
Suite 100, San Diego, CA 92121
Office:(858)320-4873

jliang@ipinc.com
www.ipinc.com

On Wed, 31 Jan 2001, Antti Linno wrote:

> Good morning.
> 
> Is there some way to make interval query? 
> 
> Towns table(estonia towns, heh :P)
> 
> id | name
> 
> 1	Elva
> 2	Tartu
> 9999	Tallinn
> 3	Tallinn/Haabersti
> 4	Tallinn/Mustamae
> 	...
> etc.
> 
> 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?
> 
> 
> Greetings,
> 	Antti
> 
> 




view thread (4+ messages)

Message-ID: <Pine.BSF.4.10.10101310946410.37554-100000@tidal.ipinc.com>
Permalink:  ../Pine.BSF.4.10.10101310946410.37554-100000@tidal.ipinc.com/
Also on:    postgresql.org/message-id/Pine.BSF.4.10.10101310946410.37554-100000@tidal.ipinc.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: jliang@ipinc.com, alligator@all.ee
  Subject: Re: interval query.
  In-Reply-To: <Pine.BSF.4.10.10101310946410.37554-100000@tidal.ipinc.com>
  References: <Pine.LNX.4.04.10101311137420.1158-100000@all.ee> <Pine.BSF.4.10.10101310946410.37554-100000@tidal.ipinc.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