Re: case-insensitive SELECT

Поиск
Список
Период
Сортировка
От Johan Daine
Тема Re: case-insensitive SELECT
Дата
Msg-id 3B255C7E.684939ED@wanadoo.be
обсуждение исходный текст
Ответ на Multiple Columns Keys - Good or Bad idea?  (Rob Brown-Bayliss <rob@ZOOstation.cc>)
Список pgsql-novice
"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 ?
>
> tnx to all
>
> Giorgio A.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly

Postgres has a regexp case insensitive comparision operator:  '~*'
See :
http://www.fr.postgresql.org/users-lounge/docs/7.1/user/functions-matching.html#FUNCTIONS-REGEXP

Good luck...
--
           _/    /_/_/_/            Johan Daine
          _/    /_/    _/           mailto:isis@wanadoo.be
         _/    /_/    _/            http://thot.dyndns.org:6080
        _/    /_/    _/
       _/    /_/    _/
 /_/_/_/    /_/_/_/



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: FATAL ERROR
Следующее
От: Ryan Ho
Дата:
Сообщение: Re: case-insensitive SELECT