Re: Custom sort

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Custom sort
Дата
Msg-id 1218740786.30569.4.camel@dell.linuxdev.us.dell.com
обсуждение исходный текст
Ответ на Custom sort  (Artacus <artacus@comcast.net>)
Список pgsql-general
On Thu, 2008-08-14 at 10:22 -0700, Artacus wrote:
> 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'))
>

You can sort by any column, or arbitrary expression or function.

Regards,
    Jeff Davis


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