Re: BUG #4037: Manual bug: 2.5. Querying a Table

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Daniel Cristian Cruz <danielcristian(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4037: Manual bug: 2.5. Querying a Table
Date: 2008-03-16 03:29:33
Message-ID: 20080316032933.GA8635@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Daniel Cristian Cruz escribió:
> Humm...
>
> Reading this way... It sounds like I could write something like this:
>
> SELECT city, (temp_hi+temp_lo)/2 temp_avg, date FROM weather;
>
> Like it work with tables...

Well, it says "the AS clause", not "the AS keyword". The keyword itself
is not optional if you want to have the clause at all.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Gurjeet Singh 2008-03-16 07:49:35 Re: BUG #4038: Problem with locale changing by initdb
Previous Message Daniel Cristian Cruz 2008-03-15 18:34:54 Re: BUG #4037: Manual bug: 2.5. Querying a Table