Re: Why *no* ambig·uous complain in select part? - Mailing list pgsql-sql

From Tom Lane
Subject Re: Why *no* ambig·uous complain in select part?
Date
Msg-id 19969.1219444890@sss.pgh.pa.us
Whole thread Raw
In response to Why *no* ambig·uous complain in select part?  (Emi Lu <emilu@encs.concordia.ca>)
List pgsql-sql
Emi Lu <emilu@encs.concordia.ca> writes:
> Just notice one small thing, and need your information about select

> select col1, col2
> from table1
> left join table2
> using (col1, col2)
> ;

> This query never complain about ambiguous columns of col1 and col2 in
> the select part.

That's because you used USING, which merges the similarly-named columns
into just one output column.  RTFM, or any SQL book.

            regards, tom lane


pgsql-sql by date:

Previous
From: Mark Roberts
Date:
Subject: Re: RE: [SQL] Why *no* ambig.uous complain in select part?
Next
From: "Steve Johnson"
Date:
Subject: What is wrong with this PostgreSQL UPDATE statement??