Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZCpP2-0004Pr-RW for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jul 2015 13:28:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZCpP2-0007Du-Am for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jul 2015 13:28:44 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZCpOC-0006T0-Qx for pgsql-bugs@postgresql.org; Wed, 08 Jul 2015 13:27:52 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZCpOA-000661-HD for pgsql-bugs@postgresql.org; Wed, 08 Jul 2015 13:27:51 +0000 Received: from intern.anarazel.de (p548954B9.dip0.t-ipconnect.de [84.137.84.185]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 9081E860002; Wed, 8 Jul 2015 15:27:49 +0200 (CEST) Date: Wed, 8 Jul 2015 15:27:49 +0200 From: Andres Freund 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 Message-ID: <20150708132749.GN10242@alap3.anarazel.de> References: <20150708112955.1186.93725@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150708112955.1186.93725@wrigleys.postgresql.org> X-Pg-Spam-Score: -4.9 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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