Re: Merging two columns into one - Mailing list pgsql-sql

From Christopher Sawtell
Subject Re: Merging two columns into one
Date
Msg-id 00062317123201.15938@berty
Whole thread Raw
In response to Merging two columns into one  ("Gary MacMinn" <G.MacMinn@nca.gov.au>)
Responses Re: Merging two columns into one
List pgsql-sql
On Fri, 23 Jun 2000, Gary MacMinn wrote:
> Hi All,
> 
> I have two columns in a table (areacode and phone number) that I'd like to merge
into one (phone number) containing both sets of info. Could anyone suggest a
simple way of achieving this?

export the data to a file using the copy command,
remove the delimiter with the unix command 'tr -d'
import the file, now minus the delimeter using the copy command.

-- 
Sincerely etc.,
NAME       Christopher Sawtell - iOpen Technologies Ltd.CELL PHONE 021 257 4451ICQ UIN    45863470EMAIL      chris @
iopen. co . nz,  csawtell @ xtra . co . nzWWW        http://www.iopen.co.nzCNOTES
ftp://ftp.funet.fi/pub/languages/C/tutorials/sawtell_C.tar.gz
-->> Please refrain from using HTML or WORD attachments in e-mails to me <<--



pgsql-sql by date:

Previous
From: "Gary MacMinn"
Date:
Subject: Merging two columns into one
Next
From: Tom Lane
Date:
Subject: Re: Using substr with user defined types