| От | Tom Lane |
|---|---|
| Тема | Re: postgres question: Views with duplicate field names |
| Дата | |
| Msg-id | 25224.1473110758@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: postgres question: Views with duplicate field names (Ryan Murphy <ryanfmurphy@gmail.com>) |
| Ответы |
Re: postgres question: Views with duplicate field names
Re: postgres question: Views with duplicate field names |
| Список | pgsql-general |
Ryan Murphy <ryanfmurphy@gmail.com> writes:
> Interesting, thanks! Do you know why the first one fails instead of doing
> that renaming process, while your version succeeds?
You're confused about the input vs. the output. The output columns
of a view all have to have distinct names, just like you can't do
"create table foo (f1 int, f1 int)". They can be reading the same
values, though.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера