Re: Sorting by constant values

Поиск
Список
Период
Сортировка
От Ragnar Hafstað
Тема Re: Sorting by constant values
Дата
Msg-id 1115144044.4196.52.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Sorting by constant values  (Robert Fitzpatrick <lists@webtent.net>)
Список pgsql-general
On Tue, 2005-05-03 at 13:29 -0400, Robert Fitzpatrick wrote:
> I have a column that I want to sort by certain values. The values are
> Unit, Exterior and Common. I want all the records with Unit first,
> Common second and Exterior last in the sort order. These are the only 3
> possible values, is there a way to sort manually like that with the
> alphanumeric values?

... ORDER BY length(col);

:-)
gnari




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

Предыдущее
От: Ragnar Hafstað
Дата:
Сообщение: Re: Date addition/subtraction
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: MVCC and insert