Re: How does one perform a case-insenstive query on test

Поиск
Список
Период
Сортировка
От Erik Jones
Тема Re: How does one perform a case-insenstive query on test
Дата
Msg-id 45A54A09.2030705@myemma.com
обсуждение исходный текст
Ответ на How does one perform a case-insenstive query on test or char fields  (af300wsm@gmail.com)
Ответы Re: How does one perform a case-insenstive query on test  (Steve Atkins <steve@blighty.com>)
Список pgsql-general
af300wsm@gmail.com wrote:
> Hello,
>
> Well, the subject line pretty much says it all.  If any clarification
> is needed, what I want to do is as follows:
>
> SELECT * FROM table WHERE thisfield = 'some text';
>
> How would I rewrite this query to search through the table looking at
> the text in the column "thisfield" for the string "some text" but have
> it perform a case insensitive search?
>
SELECT * FROM table WHERE thisfield ilike 'some text';

--
erik jones <erik@myemma.com>
software development
emma(r)


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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Trying to load MySQL data
Следующее
От: Steve Atkins
Дата:
Сообщение: Re: How does one perform a case-insenstive query on test