Re: SELECT FROM SELECT

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Aleksey V(dot) Kurinov" <leks(at)datanaut(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: SELECT FROM SELECT
Date: 2001-01-19 15:43:20
Message-ID: 8516.979919000@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Aleksey V. Kurinov" <leks(at)datanaut(dot)com> writes:
> Does Postrges provide "Select * from Select * from t1" construction ?

In 7.1.

But you have to spell it per the SQL spec:

select * from (select * from t1) as foo;

The parentheses and alias name are not optional.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Najm Hashmi 2001-01-19 17:59:34 Selecting Current value from a sequence
Previous Message Oliver Elphick 2001-01-19 14:56:30 Re: Where can i get Pgaccess