Re: CAST

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: CAST
Дата
Msg-id Pine.LNX.4.21.0009281120050.363-100000@peter
обсуждение исходный текст
Ответ на CAST  ("Enrico Comini" <algobit@algobit.com>)
Список pgsql-general
Enrico Comini writes:

> Hi, how I have to change the next query ?
>
> da_kg=Numeric
> a_kg =Numeric
>
> cusiodb=# SELECT * FROM tavola_pesi WHERE ((da_kg < 3.5) and (a_kg >= 3.5));
> ERROR:  Unable to identify an operator '<' for types 'numeric' and 'float8'
>         You will have to retype this query using an explicit cast

CAST(3.5 as numeric)

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


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

Предыдущее
От: "Enrico Comini"
Дата:
Сообщение: CAST
Следующее
От: "Martin A. Marques"
Дата:
Сообщение: Re: full text indexing