From: | "Andrew Douglas" <douglasa(at)bellsouth(dot)net> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Newbie question about datatype conversion |
Date: | 1999-03-29 13:47:04 |
Message-ID: | 199903291315.IAA25920@websmtp1.bellsouth.bigfoot.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
I must be doing something really silly but I just don't see it. Any suggestions? TIA
< Note: Redhat Linux 5.2 postgreSQL 6.3.2 >
-Andrew
adouglas(at)bellsouth(dot)net
From | Date | Subject | |
---|---|---|---|
Next Message | Herouth Maoz | 1999-03-29 16:00:00 | Re: [GENERAL] Returning an integer from a date |
Previous Message | Adriaan Joubert | 1999-03-29 11:22:23 | Re: [GENERAL] Returning an integer from a date |