Re: Order by question

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: Order by question
Дата
Msg-id 20081126200037.GA10724@tux
обсуждение исходный текст
Ответ на Order by question  (Kevin Kempter <kevink@consistentstate.com>)
Список pgsql-general
Kevin Kempter <kevink@consistentstate.com> schrieb:

> 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;


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

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

Предыдущее
От: "Grzegorz Jaśkiewicz"
Дата:
Сообщение: Re: Order by question
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: Order by question