Re: Why *no* ambig·uous complain in select part?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why *no* ambig·uous complain in select part?
Дата
Msg-id 19969.1219444890@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Why *no* ambig·uous complain in select part?  (Emi Lu <emilu@encs.concordia.ca>)
Список 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 по дате отправления:

Предыдущее
От: Mark Roberts
Дата:
Сообщение: Re: RE: [SQL] Why *no* ambig.uous complain in select part?
Следующее
От: "Steve Johnson"
Дата:
Сообщение: What is wrong with this PostgreSQL UPDATE statement??