| От | Bruno Wolff III |
|---|---|
| Тема | Re: order by question |
| Дата | |
| Msg-id | 20050309142611.GB32013@wolff.to обсуждение |
| Ответ на | order by question (Gary Stainburn <gary.stainburn@ringways.co.uk>) |
| Список | pgsql-sql |
On Wed, Mar 09, 2005 at 12:41:55 +0000, Gary Stainburn <gary.stainburn@ringways.co.uk> wrote: > Hi folks. > > I seem to remember somewhere being shown how to bump specific rows to > the top of a list; something along the lines of: > > select c_id as key, c_des as value from customers order by c_id = 7, > c_id = 160, value; > > however, although the statement is accepted the two rows specified are > not bumped to the top of the list, but instead appear in their correct > position in the order by value part. Are you sure? It looks like you are going to have them appear at the bottom of the list doing the above. Remember that false sorts before true.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера