Re: Case in-sensitive

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Case in-sensitive
Дата
Msg-id 200207241927.42145.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: Case in-sensitive  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-sql
Chris,

> > Can I config the Postgresql so that it can match case
> > in-sensitive pattern
> > automatically? i.e. I don't need to explicit convert the pattern to lower
> > case like this: .....WHERE lower(textfield) LIKE lower(pattern)
>
> All you need to do is this:
>
> ......WHERE textfield ILIKE pattern

Though, keep in mind, lower(textfield) can be indexed, but ILIKE textfield
cannot.

--
-Josh Berkus
 Aglio Database Solutions
 San Francisco


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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: Case in-sensitive
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: convert a bigint into a timestamp