Re: Can't compare decimal columns???

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Can't compare decimal columns???
Дата
Msg-id Pine.BSF.4.21.0101141657540.13622-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Can't compare decimal columns???  ("Brett W. McCoy" <bmccoy@chapelperilous.net>)
Ответы Re: Can't compare decimal columns???
Список pgsql-general
On Sun, 14 Jan 2001, Brett W. McCoy wrote:

> Why isn't there a >= or <= operator defined for floating point datatypes?
>
> As an example:
>
> bmccoy=> select * from account where balance between 20.00 and 99.00;
> ERROR:  Unable to identify an operator '>=' for types 'numeric' and 'float8'
>         You will have to retype this query using an explicit cast

I believe there was discussion about these things on -hackers a while
back.  The type promotion and which type a constant is seen as is kind of
wierd right now.  The query will probably work with explicit typecast to
numeric for the constants.


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

Предыдущее
От: Mike Castle
Дата:
Сообщение: Re: Re: starting PGSQL automatically on Redhat 6.2
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: mnogosearch -- pgsql seem so slow, please help me find out why