From: | Colin Dick <cdick(at)mail(dot)ocis(dot)net> |
---|---|
To: | Richard Lynch <lynch(at)lscorp(dot)com> |
Cc: | pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [SQL] Typecasting within sql statement. |
Date: | 1998-07-03 19:25:35 |
Message-ID: | Pine.LNX.3.96.980703122244.1754A-100000@ocis.ocis.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
> update myTable set field = 42::text::varchar;
>
> I think the int4 --> text converter is written, and text --> varchar is
> written, but int4 --> varchar is not.
Well,
It seems you understand what I am looking for but this did not
work. I get an error of:
WARN:parser: parse error at or near "::"
Do you think my fastest solution would be to write a func (inttochar)
which accepts and int and returns a char. Should only take a minute. I
think that is what I will do. Thanks for your help.
If anyone else knows an easier solution, let me know and I will dump my
function. Have a good weekend.
--
Colin Dick
On Call Internet Services
cdick(at)mail(dot)ocis(dot)net
From | Date | Subject | |
---|---|---|---|
Next Message | Ludovic Marcotte | 1998-07-04 18:58:36 | select w/Swing's JTable widget |
Previous Message | Richard Lynch | 1998-07-03 19:11:05 | Re: [SQL] Typecasting within sql statement. |