Re: UNION ALL: Apparently based on column order rather than on column name or alias

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: UNION ALL: Apparently based on column order rather than on column name or alias
Дата
Msg-id 13386.1544108784@sss.pgh.pa.us
обсуждение исходный текст
Ответ на UNION ALL: Apparently based on column order rather than on columnname or alias  (Andreas Schmid <user462411@gmail.com>)
Список pgsql-general
Andreas Schmid <user462411@gmail.com> writes:
> So my conclusion is that the result of UNION ALL depends on the column
> order, not on the column names or aliases. Is this the intended
> behaviour?

Yes, this is required by SQL spec.  Matching by column name would
be used if you wrote a CORRESPONDING clause, but we don't implement
that feature.

            regards, tom lane


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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: order of reading the conf files
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: order of reading the conf files