Custom sort

From: Artacus <artacus(at)comcast(dot)net>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Custom sort
Date: 2008-08-14 17:22:37
Message-ID: 48A469DD.2000405@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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'))

Art

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Guillaume Lelarge 2008-08-14 17:34:57 Re: Custom sort
Previous Message Scott Marlowe 2008-08-14 15:14:12 Re: Strange query plan