| От | Tom Lane |
|---|---|
| Тема | Re: Bug with ORDER BY expression [ ASC | DESC ] ? |
| Дата | |
| Msg-id | 23760.1022075809@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Bug with ORDER BY expression [ ASC | DESC ] ? (Christoph Haller <ch@rodos.fzk.de>) |
| Ответы |
Re: Bug with ORDER BY expression [ ASC | DESC ] ?
|
| Список | 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;
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера