Re: case-insensitive SELECT

Поиск
Список
Период
Сортировка
От Ryan Ho
Тема Re: case-insensitive SELECT
Дата
Msg-id 5.0.2.1.0.20010612105030.00b426e0@pacific.net.sg
обсуждение исходный текст
Ответ на case-insensitive SELECT  ("Giorgio A." <jh@libero.it>)
Список pgsql-novice
At 06:20 PM 6/11/01 +0200, Giorgio A. wrote:
>hi, i'm trieing to do a case-insensitive SELECT but i can't find a tag
>preposed to this scope.
>
>i tried to use ILIKE but i get a pg_error.... maybe it's not implemented in
>version 7.0.3 ? if so, have i any alternative way to do this
>case-insensitive SELECT ?

You're referring to text comparisons like "LIKE"?
For case insensitive comparisons I normally use the regular expression
method, which is "~*", where "*" means "to-ignore-case".

e.g.

SELECT address FROM people WHERE name ~* 'sam'

Regards
Ryan


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

Предыдущее
От: Johan Daine
Дата:
Сообщение: Re: case-insensitive SELECT
Следующее
От: "Giorgio A."
Дата:
Сообщение: Re: case-insensitive SELECT