Re: inconsistency in aliasing

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: inconsistency in aliasing
Дата
Msg-id 20090114113819.GD30398@a-kretschmer.de
обсуждение исходный текст
Ответ на Re: inconsistency in aliasing  (Louis-David Mitterrand <vindex+lists-pgsql-general@apartia.org>)
Список pgsql-general
In response to Louis-David Mitterrand :
> > Yes, you can't use the alias in the ORDER BY. Use the real column-name.
> >
> > select current_timestamp::abstime::int4 as score order by
> > current_timestamp::abstime::int4;
>
> Did you try
>
> "select current_timestamp::abstime::int4 as score order by score;" ?
>
> This seems to be an "order by <alias>"

Ouch, my fault, muddled with WHERE


Thx, Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

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

Предыдущее
От: Louis-David Mitterrand
Дата:
Сообщение: Re: inconsistency in aliasing
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: inconsistency in aliasing