Re: Invalid input for numeric problem

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Invalid input for numeric problem
Дата
Msg-id 41E7EB10.1060207@archonet.com
обсуждение исходный текст
Ответ на Invalid input for numeric problem  (mike <mike@redtux1.uklinux.net>)
Список pgsql-general
mike wrote:
>             WHEN to_number(vw_expend.code::text, '999'::text) <
> 50::numeric THEN '2'::text

> When I do for example
>
> SELECT * FROM vw_budget WHERE period = '1';
>
> I get the following error
>
> ERROR:  invalid input syntax for type numeric: " "

Probably vw_expend.code contains a space in one or more rows, and
to_number() is failing the conversion.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: laurie.burrow@powerconv.alstom.com
Дата:
Сообщение: Re: Problem running native windows Postgres 8 pg_dump etc on
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Problem running native windows Postgres 8 pg_dump etc on