Re: ORDER BY col is NULL in UNION causes error?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: ORDER BY col is NULL in UNION causes error?
Дата
Msg-id 200701111920.l0BJKP106601@momjian.us
обсуждение исходный текст
Ответ на Re: ORDER BY col is NULL in UNION causes error?  (Mike Benoit <ipso@snappymail.ca>)
Ответы Re: ORDER BY col is NULL in UNION causes error?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Mike Benoit wrote:
> That helps some, but I'm sure it could be even more clear.
>
> The main issue is that you can't order by an expression computed by
> unions, correct? So couldn't the error message by something like:
>
> "ORDER BY on a UNION/INTERSECT/EXCEPT result must match existing result
> columns and not be an expression")));

Well, it can be an expression _if_ the expression _matches_ an existing
UNION column.

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

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

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: pg_standby testing notes
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Trying to load MySQL data