From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Re: Table name scope (was Re: [BUGS] Outer joins aren't working with views) |
Date: | 2000-12-19 22:51:35 |
Message-ID: | Pine.LNX.4.30.0012192347360.1000-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
Tom Lane writes:
> SELECT * FROM (A NATURAL JOIN B) J produces ID, CA, CB
>
> SELECT J.* FROM (A NATURAL JOIN B) J produces ID, CA, CB
>
> SELECT A.* FROM (A NATURAL JOIN B) J produces ID, CA
>
> SELECT B.* FROM (A NATURAL JOIN B) J produces ID, CB
ISTM that correlation names aren't allowed after joined tables in the
first place.
<table reference> ::=
<table name> [ [ AS ] <correlation name>
[ <left paren> <derived column list> <right paren> ] ]
| <derived table> [ AS ] <correlation name>
[ <left paren> <derived column list> <right paren> ]
| <joined table>
<joined table> ::=
<cross join>
| <qualified join>
| <left paren> <joined table> <right paren>
--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/
From | Date | Subject | |
---|---|---|---|
Next Message | Bill Bunting | 2000-12-20 02:52:28 | ResultSet.getTimestamp() Exception (UPDATE) |
Previous Message | Robert B. Easter | 2000-12-19 21:08:52 | Re: Backend dies when overloading + operator for bool |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2000-12-19 23:12:11 | Re: Generating HISTORY file |
Previous Message | Mark Hollomon | 2000-12-19 22:41:59 | Re: [HACKERS] Manual changes for ALTER TABLE OWNER |