Re: [SQL] Concatenation in selects - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: [SQL] Concatenation in selects
Date
Msg-id 199809040104.VAA13352@candle.pha.pa.us
Whole thread Raw
In response to Re: [SQL] Concatenation in selects  (Leslie Mikesell <les@Mcs.Net>)
List pgsql-sql
> You should also be able to use the SQL concatenation operator '||'.  It
> doesn't seem to be able to understand more than 2 things at once so
> you have to use parens for grouping.  I don't know if that is an SQL
> requirement or a postgresql limitation.
>
>   select (first_name || ' ') || last_name as full_name from users;

Yes, that is in the 6.4 bugs list, and if it is not fixed, will be added
to the TODO list.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-sql by date:

Previous
From: "Fidelis Assis"
Date:
Subject: Resp: RE: Resp: [SQL] Concatenation in selects
Next
From: Federico Passaro
Date:
Subject: Re: [SQL] Forming Query