Re: SELECT with REAL...

Поиск
Список
Период
Сортировка
От Philippe Ferreira
Тема Re: SELECT with REAL...
Дата
Msg-id 43E793C6.9090802@worldonline.fr
обсуждение исходный текст
Ответ на Re: SELECT with REAL...  (Steve Atkins <steve@blighty.com>)
Ответы Re: SELECT with REAL...  (Steve Atkins <steve@blighty.com>)
Список pgsql-general
> Comparing two floating point numbers for equality seldom works
> the way you want it to.
>
> Without seeing the exact data you have it's hard to say for sure (as
> there
> may be some other issue with what you're doing) but I wouldn't expect
> this to work with data from arbitrary sources.
>
> Try
>
>   SELECT * FROM mytable WHERE myreal >= 10.49 AND myreal <= 10.51;
>
> and see what result that gives.
>
This way, it works...

Philippe Ferreira.

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: [HACKERS] Logging statements and parameter values
Следующее
От: Philippe Ferreira
Дата:
Сообщение: Re: SELECT with REAL...