Re: Casting numeric to text

Поиск
Список
Период
Сортировка
От Cedar Cox
Тема Re: Casting numeric to text
Дата
Msg-id Pine.LNX.4.21.0104090218440.7109-100000@nanu.visionforisrael.com
обсуждение исходный текст
Ответ на Re: Casting numeric to text  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Casting numeric to text  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-sql

On Sun, 8 Apr 2001, Peter Eisentraut wrote:

> Hans-Jürgen Schönig writes:
> 
> > Is there any possibility to cast numeric to text in Postgres 7.0.3?
> >
> > shop=# select cast(price as text) from products;
> > ERROR:  Cannot cast type 'numeric' to 'text'
> 
> Use the to_char() function.

When would one want to use cast()?  What is the difference between cast
and :: ?  After a quick look in the documentation I couldn't find
anything..

-Cedar



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: open and closed paths ...
Следующее
От: Cedar Cox
Дата:
Сообщение: Re: Need help with EXECUTE function