Re: ambiguous column names in subqueries - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ambiguous column names in subqueries
Date
Msg-id 4226.1100727669@sss.pgh.pa.us
Whole thread Raw
In response to ambiguous column names in subqueries  (Greg Stark <gsstark@mit.edu>)
Responses Re: ambiguous column names in subqueries  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> Is there any help in the SQL spec on this?

Rename the columns at the output of the subselect, eg

select * from (select 1 as foo, 2 as foo) as x(foo1, foo2);
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_resetxlog options
Next
From: John Hansen
Date:
Subject: split_part bug