From: Tony Capobianco <tcapobianco@prospectiv.com>
To: gvim <gvimrc@gmail.com>
Cc: pgsql sql <pgsql-sql@postgresql.org>
Subject: Re: Add one column to another
Date: Thu, 25 Aug 2011 10:30:21 -0400
Message-ID: <1314282621.1994.1.camel@tony1.localdomain> (raw)
In-Reply-To: <4E565A4E.9060400@gmail.com>
References: <4E565A4E.9060400@gmail.com>
Use the concat || operator.
On Thu, 2011-08-25 at 15:21 +0100, gvim wrote:
> I have to deal with a table which contains:
>
> first_name
> surname
> email1
> email2
>
> ... and I would like to create a view which combines both email columns thus:
>
> first_name
> surname
> email
>
> It looks simple but I can't think of an obvious query.
>
> gvim
>
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tcapobianco@prospectiv.com, gvimrc@gmail.com
Subject: Re: Add one column to another
In-Reply-To: <1314282621.1994.1.camel@tony1.localdomain>
* 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