Re: Order by question

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Order by question
Дата
Msg-id ggk9ut$to5$1@ger.gmane.org
обсуждение исходный текст
Ответ на Order by question  (Kevin Kempter <kevink@consistentstate.com>)
Список pgsql-general
Kevin Kempter wrote on 26.11.2008 20:46:
> Hi All;
>
> I'm selecting 3 columns.  I want to order the results ascending by col1 and
> col2 and then descending by col3
>
> Whats the syntax for this?

ORDER BY col1 ASC, col2 ASC, col3 DESC

this is documented in the manual

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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Order by question
Следующее
От: Karina Guardado
Дата:
Сообщение: problems with special characters