Re: [PHP] case insensitive search

From: "Culley Harrelson" <Culley_Harrelson(at)pgn(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: [PHP] case insensitive search
Date: 2002-03-18 17:09:57
Message-ID: sc95aef5.074@pgn.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am assuming you still need an index on lower(column_name) in order to *not* do a table scan with ILIKE right? or upper(column_name)?

culley

>>> Jon Hassen <jhassen(at)azstarnet(dot)com> 03/15/02 09:36AM >>>
Have you looked in the manual?

Try: 'where ILIKE 'searchword';

At 12:01 PM +0530 3/15/02, arun kv wrote:
>hello,
> how to do a case insensitive search on postgresql database. i will
>enter a keyword in text field and it has to search for that keyword in
>keywords field of table and should be case insensitive.
>
>can i use egrei() function. if so how.here two attributes should be
>strings. but first attribute i will get from previous php page and second
>attribute is field name of database table. how do i do this.
> pls help me
> thanking you
> Arun
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
message can get through to the mailing list cleanly

Browse pgsql-general by date

  From Date Subject
Next Message Jason Williams 2002-03-18 17:37:07 always forced restart after status 139?
Previous Message Stephan Szabo 2002-03-18 16:48:22 Re: [ODBC] ODBC