Re: SQL syntax (column alias) - Mailing list pgsql-hackers

From Rod Taylor
Subject Re: SQL syntax (column alias)
Date
Msg-id 1036944960.47533.7.camel@jester
Whole thread Raw
In response to SQL syntax (column alias)  (snpe <snpe@snpe.co.yu>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: "Nick Fankhauser"
Date:
Subject: Re: [JDBC] PostgreSQL JDBC and sub-select
Next
From: Joe Conway
Date:
Subject: Re: SQL syntax (column alias)