Re: [GENERAL] non-case sensitive searches

Поиск
Список
Период
Сортировка
От Kevin Heflin
Тема Re: [GENERAL] non-case sensitive searches
Дата
Msg-id Pine.LNX.4.02.9901130149570.21851-100000@mercury.shreve.net
обсуждение исходный текст
Ответ на non-case sensitive searches  (Kevin Heflin <kheflin@shreve.net>)
Ответы Re: [GENERAL] non-case sensitive searches  (Jeremiah Davis <jdavis@gaslightmedia.com>)
Список pgsql-general
On Wed, 13 Jan 1999, Kevin Heflin wrote:
> Currently I have a select statement like so:
>
> select * from photos where keywords LIKE '%$cat_name%'
>
> The above select statement works, except that it is case sensitive.
> Is there a way to do this that is not case sensitive?


Sorry for the lame question, I found a suggestion on some SQL mailing list
archive which suggested using:

SELECT * from photos were lower(keywords) LIKE lower('%$cat_name%'






--------------------------------------------------------------------
Kevin Heflin          | ShreveNet, Inc.      | Ph:318.222.2638 x103
VP/Mac Tech           | 333 Texas St #619    | FAX:318.221.6612
kheflin@shreve.net    | Shreveport, LA 71101 | http://www.shreve.net
--------------------------------------------------------------------


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

Предыдущее
От: Kevin Heflin
Дата:
Сообщение: non-case sensitive searches
Следующее
От: Gilles Darold
Дата:
Сообщение: Re: [GENERAL] non-case sensitive searches