Re: Overwriting Operator for numeric and float8 fails

Поиск
Список
Период
Сортировка
От Andrew McMillan
Тема Re: Overwriting Operator for numeric and float8 fails
Дата
Msg-id 3B78A80B.BEFD51BD@catalyst.net.nz
обсуждение исходный текст
Ответ на Overwriting Operator for numeric and float8 fails  ("Johann Zuschlag" <zuschlag@online.de>)
Ответы Re: Overwriting Operator for numeric and float8 fails  ("Johann Zuschlag" <zuschlag@online.de>)
Список pgsql-novice
Johann Zuschlag wrote:
>
> Hi,
>
> I've got a really stupid question. My application does queries like this:
>
> SELECT t6.* FROM RECHNUNG  t6 WHERE t6.bruttosumm = 00000034.70 ORDER BY t6.nummer DESC
>

Can't you just force conversion of the constant to numeric?

SELECT t6.* FROM RECHNUNG  t6 WHERE t6.bruttosumm = numeric(00000034.70)
ORDER BY t6.nummer DESC

Cheers,
                    Andrew.
--
_____________________________________________________________________
        Andrew McMillan, e-mail: Andrew @ catalyst . net . nz
Catalyst IT Ltd, PO Box 10-225, Level 22, 105 The Terrace, Wellington
Me: +64(27)246-7091, Fax:+64(4)499-5596, Office: +64(4)499-2267xtn709

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

Предыдущее
От: harrold@sage.che.pitt.edu
Дата:
Сообщение: standard sql operators
Следующее
От: Gaetan GUYODO
Дата:
Сообщение: Re: standard sql operators