Re: Custom sort

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: Custom sort
Дата
Msg-id 48A46CC1.8050301@lelarge.info
обсуждение исходный текст
Ответ на Custom sort  (Artacus <artacus@comcast.net>)
Ответы Re: Custom sort  (Artacus <artacus@comcast.net>)
Список pgsql-general
Artacus a écrit :
> Can you define a custom sort in postgres? For instance in mysql, you
> could do something like (I forget the exact syntax)
>
> ORDER BY FIND_IN_SET(column_name, ('one','two','three'))
>

I don't really know this syntax but isn't it something like :
  ORDER BY column_name='one', column_name='two', column='three'  ?


--
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com

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

Предыдущее
От: Artacus
Дата:
Сообщение: Custom sort
Следующее
От: Bill Moran
Дата:
Сообщение: Re: Custom sort