Re: interval query.

Поиск
Список
Период
Сортировка
От Blaise Carrupt
Тема Re: interval query.
Дата
Msg-id 200101311206.MAA22252@mjtsa.com
обсуждение исходный текст
Ответ на interval query.  (Antti Linno <alligator@all.ee>)
Список pgsql-sql
> 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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Antti Linno
Дата:
Сообщение: interval query.
Следующее
От: Som
Дата:
Сообщение: Image insertion by using BLOB