From: Paul Lambert <plengada@optusnet.com.au>
To: Ken Johanson <pg-user@kensystem.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)
Date: Thu, 10 Jan 2008 16:20:36 +0900
Message-ID: <4785C744.6080406@optusnet.com.au> (raw)
In-Reply-To: <4785C50F.6010505@kensystem.com>
References: <4785C50F.6010505@kensystem.com>
Ken Johanson wrote:
> I notice PG doesn't allow shorthand column labels -- it requires the
> 'AS' operand.
>
> SELECT col1 foo, ...; -> ERROR: syntax error at or near "foo"
>
> For compatibility with other databases, what objections might be argued
> in allowing this syntax in the future?
>
> On the 'pros' side I think it eases migration to PG, shortens code, is
> similar syntax to shorthand table aliases, and some users might argue it
> has become defacto syntax among DBs.
>
> Regards,
> Ken
Briefly discussed a couple of weeks ago.
See http://archives.postgresql.org/pgsql-general/2008-01/msg00089.php
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: plengada@optusnet.com.au, pg-user@kensystem.com
Subject: Re: Shorthand column labels (SELECT col1 foo, ...) vs (SELECT col1 AS foo, ...)
In-Reply-To: <4785C744.6080406@optusnet.com.au>
* 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