From: darcy@druid.net
To: Oliver Elphick <olly@lfix.co.uk>
Cc: Christopher Sawtell <csawtell@xtra.co.nz>
Cc: Gary MacMinn <G.MacMinn@nca.gov.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: Merging two columns into one
Date: Fri, 23 Jun 2000 07:40:25 -0400 (EDT)
Message-ID: <m135Rov-000AY5C@druid.net> (raw)
In-Reply-To: <200006230553.e5N5rde14918@linda.lfix.co.uk>
Thus spake Oliver Elphick
> SELECT col1, col2,..., areacode || phone as phone, colx, coly,...
Although you may want this for easier reading.
SELECT col1, col2,..., (areacode || ' ') || phone as phone, colx, coly,...
Also, I would do "as fullphone" instead so that I don't get confused
between the field name and my generated string but that's mainly a
style issue.
--
D'Arcy J.M. Cain <darcy@{druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
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: darcy@druid.net, olly@lfix.co.uk, csawtell@xtra.co.nz, G.MacMinn@nca.gov.au
Subject: Re: Merging two columns into one
In-Reply-To: <m135Rov-000AY5C@druid.net>
References: <200006230553.e5N5rde14918@linda.lfix.co.uk> <m135Rov-000AY5C@druid.net>
* 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