Re: COALESCE in ORDER BY...

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: COALESCE in ORDER BY...
Дата
Msg-id 20030517103937.K99993-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: COALESCE in ORDER BY...  (Andreas Schmitz <andreas.schmitz@as-dataservice.de>)
Список pgsql-sql
On Sat, 17 May 2003, Andreas Schmitz wrote:

> Terry Yapt wrote:
>
> >www=> SELECT 10 AS first ORDER BY COALESCE(first,0) DESC;
> >ERROR:  Attribute "first" not found
> >
> >Thanks in advance..
> >
> >
> Perhaps, this is a bug, but I have a workarround for you till this is
> clariefied:

Just an unimplemented enhancement I think.  At least in SQL92, order
by expressions need to be column references (possibly with collation
conversions), we allow some functional order by expressions, but not one's
referencing select aliases I think.



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

Предыдущее
От: Andreas Schmitz
Дата:
Сообщение: Re: COALESCE in ORDER BY...
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: Can arrays reference primary keys in CREATE TABLE?