Re: Problem with retrieving records using double precision fields
В списке pgsql-general по дате отправления:
| От | Richard Huxton |
|---|---|
| Тема | Re: Problem with retrieving records using double precision fields |
| Дата | |
| Msg-id | 49775BC1.3000200@archonet.com обсуждение исходный текст |
| Ответ на | Problem with retrieving records using double precision fields ("Raymond C. Rodgers" <sinful622@gmail.com>) |
| Ответы |
Re: Problem with retrieving records using double precision
fields
|
| Список | pgsql-general |
Raymond C. Rodgers wrote: > In two separate databases that are configured to have latitude and > longitude as double precision fields, I'm having trouble retrieving > records using "between" on the longitude field. I know that I have data > within range, but any query involving the longitude field fails to find > records. > test=# select * from coordtest where longitude between -83.0 and -84.0; Order of between arguments is important. richardh=> SELECT 2 between 1 and 3; ?column? ---------- t (1 row) richardh=> SELECT 2 between 3 and 1; ?column? ---------- f (1 row) richardh=> SELECT -2 between -1 and -3; ?column? ---------- f (1 row) -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера