Get closest numbers between intervals

Поиск
Список
Период
Сортировка
От xaviergxf
Тема Get closest numbers between intervals
Дата
Msg-id 089cefd7-8803-45ec-994e-525f399cd07d@q35g2000vbi.googlegroups.com
обсуждение исходный текст
Ответы Re: Get closest numbers between intervals  (Dimitri Fontaine <dfontaine@hi-media.com>)
Список pgsql-general
Hi,

   I have one table that has this structure:

city_code, start_ip, end_ip

I´m searching for the city that its between two ip´s. But, i would
like to get the nearest´s cities too.

Any ideas how can i search for the city proximity?

thanks!

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

Предыдущее
От: Josef Wolf
Дата:
Сообщение: Re: pg_ctl with unix domain socket?
Следующее
От: Richard Broersma
Дата:
Сообщение: Any former bugs that loose duplicates after a sort