Re: case insensitive matching

Поиск
Список
Период
Сортировка
От Mitch Vincent
Тема Re: case insensitive matching
Дата
Msg-id 00fe01c02d5a$128e34f0$0200000a@doot
обсуждение исходный текст
Ответ на case insensitive matching  (Robert Kernell <kernell@sundog.larc.nasa.gov>)
Список pgsql-general
Regular expression operator, ~* (Can't use indexes)

You can still use LIKE but you have to do it like :

SELECT * FROM names WHERE lower(firstname) LIKE lower('Mitch');

If you wanted to make this use indexes, you could create the index using
lower(fieldname) .. Something like :

CREATE INDEX on names lower(firstname)

Good luck!

-Mitch


----- Original Message -----
From: "Robert Kernell" <kernell@sundog.larc.nasa.gov>
To: <pgsql-general@postgresql.org>
Sent: Tuesday, October 03, 2000 9:41 AM
Subject: [GENERAL] case insensitive matching


> Hi. LIKE does case sensitive string matching. Is there an easy way to do
case
> insensitive string matching?
>
> Bob Kernell
> Research Scientist
> AS&M
> email: kernell@sundog.larc.nasa.gov
>
>


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

Предыдущее
От: "Adam Lang"
Дата:
Сообщение: Re: case insensitive matching
Следующее
От: Doug Budny
Дата:
Сообщение: Re: case insensitive matching