Re: Case sensitive order by

Поиск
Список
Период
Сортировка
От Deepak Joglekar
Тема Re: Case sensitive order by
Дата
Msg-id 1050286674.1411.7.camel@joglekar.dhs.org
обсуждение исходный текст
Ответ на Re: Case sensitive order by  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi,

On Sat, 2003-04-12 at 02:24, Tom Lane wrote:
> Deepak Joglekar <deepak.joglekar@nebula-soft.com> writes:
> > I want to do case sensitve sorting on a varchar field.
>
> > That is I will have strings in the varchar field which will have
> > character from ascii(32) to ascii(255). I want sort result by ascii
> > values.
>
> If you want a straight-ASCII sort without any funny locale sort rules,
> you need to be careful to initdb in C locale.
>
initdb -D /path-to-data --locale=C
It works the way I want ( pure ascii sort ). Thanks a lot.

I want to know is there any way to choose what type of sort to use
during query. i.e sort based on EN_US, or C.

Best regards.

Deepak Joglekar


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

Предыдущее
От: fxcrazy@yahoo.com (Tom)
Дата:
Сообщение: lo_import doesn't works through ODBC !
Следующее
От: Bob Kline
Дата:
Сообщение: Re: Upgrade to Red Hat Linux 9 broke PostgreSQL