Re: ambiguous column names in subqueries

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: ambiguous column names in subqueries
Дата
Msg-id 87oehw3z0v.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: ambiguous column names in subqueries  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: ambiguous column names in subqueries  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> select * from (select 1 as foo, 2 as foo) as x(foo1, foo2);

How is this different than simply listing all the columns instead of the "*"?

I still have the maintenance problem of having to edit the outer query every
time the list of columns from the inner query changes.

-- 
greg



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: ambiguous column names in subqueries
Следующее
От: John Hansen
Дата:
Сообщение: Re: split_part bug