Re: [ADMIN] About lower and uppercase

Поиск
Список
Период
Сортировка
От Christoph Dalitz
Тема Re: [ADMIN] About lower and uppercase
Дата
Msg-id 20021105140103.0c4d6a3a.christoph.dalitz@hs-niederrhein.de
обсуждение исходный текст
Список pgsql-general
Date: Tue, 05 Nov 2002 09:22:37 +0100
From: frbn <frbn@efbs-seafrigo.fr>
>
> select * from fruits where fruit_name ~* 'orange';
>
Does this query ever use an index on fruit_name?

AFAIK the most reliant solution is the previously suggested
"where lower(fruit_name) = 'orange'"
AND creating indices only on lower(attributename).

Beware however that there are some letters that have no
uppercase/lowercase equivalent (the letter "Eszet" (ß) in German
is an example for a letter that has no uppercase equivalent).
That should not be such an issue as a proper implementation of
upper()/lower() would leave these letters alone.

Christoph Dalitz

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

Предыдущее
От: Florian Litot
Дата:
Сообщение: Re: log file?
Следующее
От: Christoph Dalitz
Дата:
Сообщение: Re: executing delete in a case statement?