casting question

Поиск
Список
Период
Сортировка
От A. Van Hook
Тема casting question
Дата
Msg-id 3C5C03C6.CAE5CAB3@kcp.com
обсуждение исходный текст
Ответы Re: casting question  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: casting question  (Jeff Eckermann <jeff_eckermann@yahoo.com>)
Список pgsql-sql

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....


tanks



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fractional Results
Следующее
От: "Steve Boyle \(Roselink\)"
Дата:
Сообщение: Re: test the existence of a database