| От | Tom Lane |
|---|---|
| Тема | Re: ambiguous column names in subqueries |
| Дата | |
| Msg-id | 4701.1100730185@sss.pgh.pa.us обсуждение |
| Ответ на | Re: ambiguous column names in subqueries (Greg Stark <gsstark@mit.edu>) |
| Ответы |
Re: ambiguous column names in subqueries
|
| Список | pgsql-hackers |
Greg Stark <gsstark@mit.edu> writes:
> Tom Lane <tgl@sss.pgh.pa.us> writes:
>> select * from (select 1 as foo, 2 as foo) as x(foo1, foo2);
> I still have the maintenance problem of having to edit the outer query every
> time the list of columns from the inner query changes.
Yeah, but at least you only have to do it in one place.
AFAICS removing columns from the inner query because they have duplicate
names would violate the SQL spec, so it's not going to happen.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера