pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: atulcs178@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13494: Postgresql database displays first column data on merging of two columns in the Select statement
Date: Wed, 8 Jul 2015 15:27:49 +0200
Message-ID: <20150708132749.GN10242@alap3.anarazel.de> (raw)
In-Reply-To: <20150708112955.1186.93725@wrigleys.postgresql.org>
References: <20150708112955.1186.93725@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2015-07-08 11:29:55 +0000, atulcs178@gmail.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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <20150708132749.GN10242@alap3.anarazel.de>
Permalink:  ../20150708132749.GN10242@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20150708132749.GN10242@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andres@anarazel.de, atulcs178@gmail.com
  Subject: Re: BUG #13494: Postgresql database displays first column data on merging of two columns in the Select statement
  In-Reply-To: <20150708132749.GN10242@alap3.anarazel.de>
  References: <20150708112955.1186.93725@wrigleys.postgresql.org> <20150708132749.GN10242@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox