Re: Varchar concatenate fields as Char or Varchar, not - Mailing list pgsql-general

From Rodrigo Gonzalez
Subject Re: Varchar concatenate fields as Char or Varchar, not
Date
Msg-id 44D78970.1080003@gmail.com
Whole thread Raw
In response to Re: Varchar concatenate fields as Char or Varchar, not Text  (MargaretGillon@chromalloy.com)
Responses Re: Varchar concatenate fields as Char or Varchar, not Text
List pgsql-general
SELECT b.ltname, ((c.refullname::text || d.enname::text) ||
f.evname::text)::varchar AS evlinkname1,

MargaretGillon@chromalloy.com wrote:
>
> >Rodrigo Gonzalez <rjgonzale@gmail.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


pgsql-general by date:

Previous
From: MargaretGillon@chromalloy.com
Date:
Subject: Re: Varchar concatenate fields as Char or Varchar, not Text
Next
From: Ron Johnson
Date:
Subject: Re: Practical maximums (was Re: PostgreSQL theoretical