newbie question about type conversions

Поиск
Список
Период
Сортировка
От Andrew Douglas
Тема newbie question about type conversions
Дата
Msg-id 199903262111.QAA02829@websmtp1.bellsouth.bigfoot.com
обсуждение исходный текст
Список pgsql-sql
I can't seem to figure out how to convert a varchar to a text or a text to char
or anything. I've tried doing exactly as the good documentation says but this is
the kind of response I get..

foo=> select orgname from organization;
orgname
----------------------
Douglas Ventures
BobMart
(2 rows)
foo=> \d organization;
<---SNIP--->
| orgname   | varchar() not null   |    25 |
<---SNIP--->

foo=> select text(orgname) from organization;
ERROR:  function text(varchar) does not exist
foo=> select orgname::text from organization;
ERROR:  function text(varchar) does not exist
foo=> select char(orgname) from organization;
ERROR:  parser: parse error at or near "orgname"
foo=> select orgname::char from organization;
ERROR:  function char(varchar) does not exist

any suggestions?

< Note: Redhat Linux 5.2 postgreSQL 6.3.2 >
-Andrew
adouglas@bellsouth.net



�


----------------------------------------------------------------------------
Access your e-mail anywhere, at any time.
Get your FREE BellSouth Web Mail account today!
http://webmail.bellsouth.net
----------------------------------------------------------------------------


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

Предыдущее
От: "Andrew Douglas"
Дата:
Сообщение: newbie question about type conversions
Следующее
От: Herouth Maoz
Дата:
Сообщение: Re: [SQL] Odd "problem", not sure if there is a solution ....