Re: How does one perform a case-insenstive query on test - Mailing list pgsql-general

From Erik Jones
Subject Re: How does one perform a case-insenstive query on test
Date
Msg-id 45A54A09.2030705@myemma.com
Whole thread Raw
In response to How does one perform a case-insenstive query on test or char fields  (af300wsm@gmail.com)
Responses Re: How does one perform a case-insenstive query on test  (Steve Atkins <steve@blighty.com>)
List 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 by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Trying to load MySQL data
Next
From: Steve Atkins
Date:
Subject: Re: How does one perform a case-insenstive query on test