Re: Case sensitivity issue - Mailing list pgsql-general

From Matthew Rice
Subject Re: Case sensitivity issue
Date
Msg-id lv8zfhs8cv.fsf@sol.starnix.com
Whole thread Raw
In response to Case sensitivity issue  (mike7411@earthlink.net (Michael Gay))
List 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 by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: joinning tables
Next
From: Stephan Szabo
Date:
Subject: Re: Numerical DB/Table Names