Re: Add one column to another

From: vipul shah <vipmshah(at)gmail(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: "Oliveiros d'Azevedo Cristina" <oliveiros(dot)cristina(at)marktest(dot)pt>, gvim <gvimrc(at)gmail(dot)com>, pgsql sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Add one column to another
Date: 2011-08-25 19:46:11
Message-ID: CALXQATYVAhfo+5UOix2tJ-tkn2pPfOd_Cr-1fo0E2CoxXZe_eA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Check this link.

It's useful to resolve the issue.

http://blog.ropardo.ro/2010/05/04/extending-postgresql-a-better-concat-operator/

- Vipul

On Thu, Aug 25, 2011 at 12:54 PM, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>wrote:

> On Thu, Aug 25, 2011 at 8:52 AM, Oliveiros d'Azevedo Cristina
> <oliveiros(dot)cristina(at)marktest(dot)pt> wrote:
> > Something like this...?
> >
> > SELECT first_name,surname, email1 || ';' || email2
> > FROM t_your_table;
>
> If there's any nulls in email1 or email2 they'll need special handling
> with coalesce.
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message ppdcc 2011-08-25 20:17:54 st_offsetcurve
Previous Message Scott Marlowe 2011-08-25 17:54:05 Re: Add one column to another