From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
---|---|
To: | Ben Schneider <bcschnei(at)attbi(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org, pgsql-php(at)postgresql(dot)org |
Subject: | Re: [PHP] Case Insensitive Searching? |
Date: | 2003-05-25 13:56:30 |
Message-ID: | 20030525135630.GB1057@wolff.to |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice pgsql-php |
On Fri, May 23, 2003 at 13:24:36 -0700,
Ben Schneider <bcschnei(at)attbi(dot)com> wrote:
>
> So the question is, how do I perform a case insensitive search? Is there a
> DB setting I can set to ignore the case?
If you were using "like", you can use "ilike" instead. There is also
a case insensitive version of the regular expression pattern matching
operator. In some cases you may want to use the "lower" function
to get the data in just one case before doing a comparison. Without
seeing how you are doing your searches now it is hard to provide
specifics on what to do to make them case insensitive.
From | Date | Subject | |
---|---|---|---|
Next Message | Nabil Sayegh | 2003-05-25 16:34:38 | Example Re: SELECT across multiple db |
Previous Message | John K. Herreshoff | 2003-05-25 13:13:02 | Using SSL on VB5 Apps |
From | Date | Subject | |
---|---|---|---|
Next Message | Ernest E Vogelsinger | 2003-05-25 19:51:22 | Re: [PHP] Case Insensitive Searching? |
Previous Message | Frank Bax | 2003-05-25 02:01:30 | Re: faster output from php and postgres |