Re: casting question

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: casting question
Дата
Msg-id 20020202105619.E42811-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на casting question  ("A. Van Hook" <hook@kcp.com>)
Список pgsql-sql
On Sat, 2 Feb 2002, A. Van Hook wrote:

>
>
> I have a column  (quantityonhand     | character(15) | default '' )
> that I would like to use to perform simple math.
> I can't seem to get the syntax for casting and  have tried various
> combinations of "select  to_number(quantityonhand::text, '99G999D9S')".
> Can not get get past ERROR:  Bad numeric input format ' '.
>
>
>     Any help would be greatly  appreciated....

You probably have a value in there which is not convertable to a numeric
(such as the default '').




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

Предыдущее
От: "Steve Boyle \(Roselink\)"
Дата:
Сообщение: Re: test the existence of a database
Следующее
От: Murray Prior Hobbs
Дата:
Сообщение: temporary tables, plpgsql and yes i bet this has been asked before