Re: [GENERAL] non-case sensitive searches

From: Jeremiah Davis <jdavis(at)gaslightmedia(dot)com>
To: Kevin Heflin <kheflin(at)shreve(dot)net>
Cc: "PGSQL-General (E-mail)" <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] non-case sensitive searches
Date: 1999-01-13 14:56:17
Message-ID: Pine.3.89.9901130925.A25237-0100000@onramp.freeway.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Actually, There is a far better way to do that, the exact operator
escapes me right now... but its in the postgres documentation.

On Wed, 13 Jan 1999, Kevin Heflin wrote:

> 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(at)shreve(dot)net | Shreveport, LA 71101 | http://www.shreve.net
> --------------------------------------------------------------------
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dustin Sallings 1999-01-13 17:47:33 Re: [GENERAL] Tricky SQL query (tried [SQL])
Previous Message Kevin Heflin 1999-01-13 14:39:29 Re: [GENERAL] non-case sensitive searches