Re: SQL syntax (column alias)

From: Rod Taylor <rbt(at)rbt(dot)ca>
To: snpe <snpe(at)snpe(dot)co(dot)yu>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SQL syntax (column alias)
Date: 2002-11-10 16:15:59
Message-ID: 1036944960.47533.7.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-jdbc

On Sun, 2002-11-10 at 10:41, snpe wrote:
> Hello,
> Query :
>
> select id i
> from tab
>
> don't work in PostgreSQL
>
> I know that
>
> select id as i
> from tab
>
> work, but I think that AS in 'as cluse' is optional

Thats true. Section 7.11 has it as optional

<derived column> ::=
<value expression> [ <as clause> ]

<as clause> ::= [ AS ] <column name>

But this isn't going to be very nice to fix.

conflicts: 1378 shift/reduce, 44 reduce/reduce

--
Rod Taylor

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joe Conway 2002-11-10 16:38:37 Re: SQL syntax (column alias)
Previous Message snpe 2002-11-10 15:41:54 SQL syntax (column alias)

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2002-11-10 16:38:37 Re: SQL syntax (column alias)
Previous Message snpe 2002-11-10 15:41:54 SQL syntax (column alias)

Browse pgsql-jdbc by date

  From Date Subject
Next Message Joe Conway 2002-11-10 16:38:37 Re: SQL syntax (column alias)
Previous Message snpe 2002-11-10 15:41:54 SQL syntax (column alias)