Re: Simple SQL

From: Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>
To: Bob Messenger <bob(at)cassiancapital(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Simple SQL
Date: 2003-10-24 05:25:44
Message-ID: Pine.LNX.4.44.0310240725050.9738-100000@kix.fsv.cvut.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Not

SELECT 1 as a, a*2;
ERROR: column "a" does not exist

Regards
Pavel

On Tue, 21 Oct 2003, Bob Messenger wrote:

> Is it possible to do something like:
>
> select 1 as a, a*a;
>
> in postgres?
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>

In response to

  • Simple SQL at 2003-10-21 18:26:16 from Bob Messenger

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nagib Abi Fadel 2003-10-24 05:31:57 ERROR: Multiple assignments to same attribute... ??
Previous Message Scott Chapman 2003-10-24 05:24:19 Re: HTML generation with PL/PgSQL