Re: Bug with ORDER BY expression [ ASC | DESC ] ?

Поиск
Список
Период
Сортировка
От Christoph Haller
Тема Re: Bug with ORDER BY expression [ ASC | DESC ] ?
Дата
Msg-id 200205221401.QAA26812@rodos
обсуждение исходный текст
Ответ на Re: Bug with ORDER BY expression [ ASC | DESC ] ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
> 
> Christoph Haller <ch@rodos.fzk.de> writes:
> > select distinct on (o.sid,o.timepoint,o.lid,o.mid) o.sid,o.timepoint,o.lid,o.mid,o.value 
> > from onfvalue o, tempreftime t 
> > where o.sid=t.sid and o.timepoint=t.timepoint and o.lid=t.lid and o.mid=t.mid
> > order by o.sid,o.timepoint,o.lid,o.mid,o.entrancetime desc;
> 
> > but the result is coming in ascending order. 
> 
> Perhaps you meant to say
> 
> order by o.sid desc, o.timepoint desc, o.lid desc, o.mid desc, o.entrancetime desc;
> 
> 
Indeed. Thanks, Christoph 


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Bug with ORDER BY expression [ ASC | DESC ] ?
Следующее
От: "Tille, Andreas"
Дата:
Сообщение: Re: Turning column into row