Re: Case sensitivity issue

Поиск
Список
Период
Сортировка
От Matthew Rice
Тема Re: Case sensitivity issue
Дата
Msg-id lv8zfhs8cv.fsf@sol.starnix.com
обсуждение исходный текст
Ответ на Case sensitivity issue  (mike7411@earthlink.net (Michael Gay))
Список pgsql-general
Szabo Zoltan <col@econet.hu> writes:
> Use: ILIKE
>
> > If I am doing a command such as
> > select * from Apples where color like '%red%';
> > how do I make it case insensitive?

I was trying to solve a similar problem where I wanted an exact match to work
in PostgreSQL and MySQL and ended up with:

        lower(Field) = lower('string')

Is there another way that works on both?
--
matthew rice <matt@starnix.com>                               starnix inc.
tollfree: 1-87-pro-linux                        thornhill, ontario, canada
http://www.starnix.com              professional linux services & products

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: joinning tables
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Numerical DB/Table Names