Re: order by question

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: interval +variable
Следующее
От: Gary Stainburn
Дата:
Сообщение: Re: order by question