Re: Varchar concatenate fields as Char or Varchar, not

From: Rodrigo Gonzalez <rjgonzale(at)gmail(dot)com>
To: MargaretGillon(at)chromalloy(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Varchar concatenate fields as Char or Varchar, not
Date: 2006-08-07 18:41:52
Message-ID: 44D78970.1080003@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

SELECT b.ltname, ((c.refullname::text || d.enname::text) ||
f.evname::text)::varchar AS evlinkname1,

MargaretGillon(at)chromalloy(dot)com wrote:
>
> >Rodrigo Gonzalez <rjgonzale(at)gmail(dot)com> wrote on 08/07/2006 11:36:28 AM:
> > Really, I dont see the 3 varchar fields concatenated to a new field.
> >
> > But do this....
> >
> > (varchar1||varchar2||varchar3||newfield)::varchar
> >
> > Best regards
> >
>
> This is the concatenate statement
>
> > > SELECT b.ltname, (c.refullname::text || d.enname::text) ||
> > > f.evname::text AS evlinkname1,
>
> Margaret Gillon

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2006-08-07 18:51:35 Re: Practical maximums (was Re: PostgreSQL theoretical
Previous Message MargaretGillon 2006-08-07 18:39:15 Re: Varchar concatenate fields as Char or Varchar, not Text