Re: Ordering YYYY MM DD in reverse chrono order

Поиск
Список
Период
Сортировка
От Lee Harr
Тема Re: Ordering YYYY MM DD in reverse chrono order
Дата
Msg-id BAY2-F143nfrgeTv3GJ0001e84a@hotmail.com
обсуждение исходный текст
Список pgsql-general
>
>ORDER BY
>date_part('year', uu.add_date), date_part('month', uu.add_date),
>date_part('day',  uu.add_date) DESC;
>


How about just

ORDER BY uu.add_date DESC

?

It would be cheaper without all of those date_part calls, and should
order in the same way.

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


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

Предыдущее
От: Jeff Eckermann
Дата:
Сообщение: Re: PL/SQL question
Следующее
От: Mike Nolan
Дата:
Сообщение: Re: PL/SQL question