Re: order by

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: order by
Дата
Msg-id GNELIHDDFBOCMGBFGEFOGEJMCCAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: order by  ("Marin Dimitrov" <marin.dimitrov@sirma.bg>)
Список pgsql-sql
> ----- Original Message -----
> From: "Mathieu Arnold"
>
> > then 1 and then 3. so that the result should be :
> >
> > 1 | one   | 1
> > 3 | three | 2
> > 5 | five  | 2
> > 2 | two   | 3
> > 4 | four  | 3
> >
> > How could I do that ?
> >
>
> gate09=# select * from a order by 3,1,2;

This won't work - it will order by the third param, then first, then
second...

Chris



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: can't cast varchar as integer?
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: date_part, how to use