Re: [SQL] combining columns in select

From: "D'Arcy" "J(dot)M(dot)" Cain <darcy(at)druid(dot)net>
To: jens(at)jens(dot)de
Cc: doug(dot)t(at)deltanet(dot)com, pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] combining columns in select
Date: 1999-10-03 01:15:29
Message-ID: m11XaFN-0000c2C@druid.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Thus spake Jens Glaser
> On Sat, 2 Oct 1999, Doug Thistlethwaite wrote:
> > select lname + ', ' + fname as NAME from table ...
>
> I think this is a parser bug. I recall there is a simple workaround:
>
> select (lname + ', ') + fname ... (use braces)

While you are correct in your solution, it isn't a parser bug. It just
follows the spec. There has been talk of allowing the first form as
an extension.

--
D'Arcy J.M. Cain <darcy(at){druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Herouth Maoz 1999-10-03 16:29:33 Re: [SQL] combining columns in select
Previous Message Doug Thistlethwaite 1999-10-02 15:40:10 combining columns in select