Received: from candle.pha.pa.us (maillist@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.8.8/8.7.5) with ESMTP id VAA19787 for ; Thu, 3 Sep 1998 21:04:51 -0400 (EDT) Received: (from maillist@localhost) by candle.pha.pa.us (8.8.5/8.8.5) id VAA13352; Thu, 3 Sep 1998 21:04:32 -0400 (EDT) From: Bruce Momjian Message-Id: <199809040104.VAA13352@candle.pha.pa.us> Subject: Re: [SQL] Concatenation in selects In-Reply-To: <199809031933.OAA19204@Jupiter.Mcs.Net> from Leslie Mikesell at "Sep 3, 1998 2:33:12 pm" To: les@Mcs.Net (Leslie Mikesell) Date: Thu, 3 Sep 1998 21:04:32 -0400 (EDT) Cc: joden@Lee.k12.nc.us, pgsql-sql@postgreSQL.org X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > 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)