Re: [GENERAL] non-case sensitive searches - Mailing list pgsql-general

From Kevin Heflin
Subject Re: [GENERAL] non-case sensitive searches
Date
Msg-id Pine.LNX.4.02.9901130836270.4388-100000@mercury.shreve.net
Whole thread Raw
In response to Re: [GENERAL] non-case sensitive searches  (Gilles Darold <darold@neptune.fr>)
Responses Re: [GENERAL] non-case sensitive searches
Re: [GENERAL] non-case sensitive searches
List pgsql-general
On Wed, 13 Jan 1999, Gilles Darold wrote:

> Hi Kevin,
>
> You can also use regexp expression like this :
>
>     SELECT * FROM photos WHERE keywords ~* '.*$cat_name.*';
>
> it works fine.


Thanks for the tip. Any recommendations as to which would be faster when
searching about 2,000 records or so..

WHERE keywords ~* '.*$cat_name.*';

or

WHERE lower(keywords) LIKE lower('%$cat_name%')


Thanks again.


--------------------------------------------------------------------
Kevin Heflin          | ShreveNet, Inc.      | Ph:318.222.2638 x103
VP/Mac Tech           | 333 Texas St #619    | FAX:318.221.6612
kheflin@shreve.net    | Shreveport, LA 71101 | http://www.shreve.net
--------------------------------------------------------------------


pgsql-general by date:

Previous
From: Silvio Emanuel Barbosa de Macedo
Date:
Subject: Re: Web-Based Reports (cgi using mod_perl)
Next
From: Jeremiah Davis
Date:
Subject: Re: [GENERAL] non-case sensitive searches