pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael J Davis <michael.j.davis@tvguide.com>
To: 'JT Kirkpatrick' <jt-kirkpatrick@mpsllc.com>
To: 'pgsql-sql@hub.org' <pgsql-sql@hub.org>
Subject: RE: [SQL] convert text to varchar
Date: Mon, 3 May 1999 10:34:34 -0500
Message-ID: <93C04F1F5173D211A27900105AA8FCFC145464@lambic.prevuenet.com> (raw)

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



view thread (4+ messages)  latest in thread

Message-ID: <93C04F1F5173D211A27900105AA8FCFC145464@lambic.prevuenet.com>
Permalink:  ../93C04F1F5173D211A27900105AA8FCFC145464@lambic.prevuenet.com/
Also on:    postgresql.org/message-id/93C04F1F5173D211A27900105AA8FCFC145464@lambic.prevuenet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: michael.j.davis@tvguide.com, jt-kirkpatrick@mpsllc.com, pgsql-sql@hub.org
  Subject: Re: [SQL] convert text to varchar
  In-Reply-To: <93C04F1F5173D211A27900105AA8FCFC145464@lambic.prevuenet.com>
  References: <93C04F1F5173D211A27900105AA8FCFC145464@lambic.prevuenet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox