RE: [SQL] convert text to varchar - Mailing list pgsql-sql

From Michael J Davis
Subject RE: [SQL] convert text to varchar
Date
Msg-id 93C04F1F5173D211A27900105AA8FCFC145464@lambic.prevuenet.com
Whole thread Raw
List pgsql-sql
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


pgsql-sql by date:

Previous
From: JT Kirkpatrick
Date:
Subject: convert text to varchar
Next
From: Tom Lane
Date:
Subject: Re: [SQL] Slow Inserts Again