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

From: Erik Jones <erik(at)myemma(dot)com>
To: af300wsm(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How does one perform a case-insenstive query on test
Date: 2007-01-10 20:18:17
Message-ID: 45A54A09.2030705@myemma.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

af300wsm(at)gmail(dot)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(at)myemma(dot)com>
software development
emma(r)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Atkins 2007-01-10 20:42:25 Re: How does one perform a case-insenstive query on test
Previous Message Scott Marlowe 2007-01-10 20:08:41 Re: Trying to load MySQL data