Re: BUG #13494: Postgresql database displays first column data on merging of two columns in the Select statement

From: Andres Freund <andres(at)anarazel(dot)de>
To: atulcs178(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13494: Postgresql database displays first column data on merging of two columns in the Select statement
Date: 2015-07-08 13:27:49
Message-ID: 20150708132749.GN10242@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 2015-07-08 11:29:55 +0000, atulcs178(at)gmail(dot)com wrote:
> PostgreSQL database displays data of the first column,under second column
> name, When we merge two columns in the Select statement. However it should
> throw error if we don't put any comma (,) in between both columns.

You mean like "SELECT column_a column_b", right? In that case column_b
is the alias for column_a. The SQL standard has made the AS for column
aliases optional.

Regards,

Andres

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2015-07-08 13:56:51 Re: BUG #13493: pl/pgsql doesn't scale with cpus (PG9.3, 9.4)
Previous Message Andres Freund 2015-07-08 13:22:12 Re: BUG #13493: pl/pgsql doesn't scale with cpus (PG9.3, 9.4)