Re: Order by question

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема Re: Order by question
Дата
Msg-id 2f4958ff0811261159y7ce2648va45abe5b0510a863@mail.gmail.com
обсуждение исходный текст
Ответ на Order by question  (Kevin Kempter <kevink@consistentstate.com>)
Список pgsql-general


On Wed, Nov 26, 2008 at 7:46 PM, Kevin Kempter <kevink@consistentstate.com> wrote:
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?
select * from foo order by a,b asc, c desc;
?


--
GJ

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

Предыдущее
От: Kevin Kempter
Дата:
Сообщение: Order by question
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Order by question