Re: Select <-> Case Insensitive

Поиск
Список
Период
Сортировка
От Mark Rae
Тема Re: Select <-> Case Insensitive
Дата
Msg-id 3C764805.2ACA4DE0@inpharmatica.co.uk
обсуждение исходный текст
Ответ на Re: Select <-> Case Insensitive  (Devrim GUNDUZ <devrim@oper.metu.edu.tr>)
Список pgsql-general
Devrim GUNDUZ wrote:
> The query
>
> SELECT * from mytable order by lower(description);
>
> could solve your problem.

I seem to recall (From C/C++ at least) that you should upcase text
for case insensitive comparisons, as with some languages there is no
well defined upper->lower conversion, but there is always a
unique lower->upper transformation.

Is this correct for (Postgres)SQL locale support as well?

    -Mark

--
Mark Rae                                       Tel: +44(0)20 7074 4648
Inpharmatica                                   Fax: +44(0)20 7074 4700
m.rae@inpharmatica.co.uk                http://www.inpharmatica.co.uk/

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

Предыдущее
От: Vic Cekvenich
Дата:
Сообщение: Re: A Replication Idea
Следующее
От: "pauLSiew"
Дата:
Сообщение: Re: Date problem