Search Postgresql Archives

Re: Invalid input for numeric problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux