cast numeric to char

Поиск
Список
Период
Сортировка
От Johnson, Shaunn
Тема cast numeric to char
Дата
Msg-id 73309C2FDD95D11192E60008C7B1D5BB04C74113@snt452.corp.bcbsm.com
обсуждение исходный текст
Ответы Re: cast numeric to char
Список pgsql-general

Howdy:

Running PostgreSQL 7.2.1 -

I'm trying to cast a numeric field to character, but I
am getting errors saying that it can not be done.

[snip errors]

testdb=> select lpad(i_pd::char,7,'0') from t_table limit 1;
ERROR:  Cannot cast type 'numeric' to 'character'

[/snip error]

Is it that I *can not* cast numeric into character value or
or do I need some new methodology of doing this?

Thanks!

-X

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

Предыдущее
От: "Shridhar Daithankar"
Дата:
Сообщение: Re: question about seq scan and index scan
Следующее
От: Pedro Miguel Frazao Fernandes Ferreira
Дата:
Сообщение: Formatting query output