try:insert into ap (apnote) select apnote::varchar from ap3;
> -----Original Message-----
> From: JT Kirkpatrick [SMTP:jt-kirkpatrick@mpsllc.com]
> Sent: Monday, May 03, 1999 9:33 AM
> To: 'pgsql-sql@hub.org'
> Subject: [SQL] convert text to varchar
>
> hi! i have a text field (table ap3, field name apnote) that i would like
> to insert into a varchar field (same field name, table name ap). any idea
>
> why this doesn't work? insert into ap (apnote) select varchar('apnote')
> from ap3; -- it fails with or without the single quotes.
>
> TIA, jt