Re: Order by YYYY MM DD in reverse chrono order trouble

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Order by YYYY MM DD in reverse chrono order trouble
Дата
Msg-id 25337.1082638880@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Order by YYYY MM DD in reverse chrono order trouble  (<ogjunk-pgjedan@yahoo.com>)
Ответы Re: Order by YYYY MM DD in reverse chrono order trouble  (<ogjunk-pgjedan@yahoo.com>)
Список pgsql-sql
<ogjunk-pgjedan@yahoo.com> writes:
> I'd love to be able to do that, but I cannot just ORDER BY uu.add_date,
> because I do not have uu.add_date in the SELECT part of the statement. 

Sure you can.  Back around SQL89 there was a restriction that ORDER BY
values had to appear in the SELECT list as well, but no modern database
has such a restriction anymore ...
        regards, tom lane


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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Trigger calling a function HELP ME! (2)
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: Server Side C programming Environment Set up