Re: query not using index for descending records?

Поиск
Список
Период
Сортировка
От email lists
Тема Re: query not using index for descending records?
Дата
Msg-id 035C9F7CE28601428BBB5B051C9F77F207678A@orion
обсуждение исходный текст
Ответ на query not using index for descending records?  ("email lists" <lists@darrenmackay.com>)
Список pgsql-sql
Hi,

| You probably don't want to do that. The DESC only applies to the
| one expression it follows. What you want is probably:
| explain select datetime,id from trafficlogs order by
| datetime desc,id desc limit 20;

This is exactly what I was after - worked a treat!

Thanks.

Darren


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

Предыдущее
От: mohan@physics.gmu.edu
Дата:
Сообщение: PROBLEM SOLVEDRe: java.lang.StringIndexOutOfBoundsException: String index
Следующее
От: beyaRecords - The home Urban music
Дата:
Сообщение: Mechanics of Update:Cascade