From: Bruno Wolff III <bruno@wolff.to>
To: Ben Schneider <bcschnei@attbi.com>
Cc: pgsql-novice@postgresql.org
Cc: pgsql-php@postgresql.org
Subject: Re: [PHP] Case Insensitive Searching?
Date: Sun, 25 May 2003 08:56:30 -0500
Message-ID: <20030525135630.GB1057@wolff.to> (raw)
In-Reply-To: <001301c32169$54d90fa0$5011a8c0@micronpc>
References: <001301c32169$54d90fa0$5011a8c0@micronpc>
On Fri, May 23, 2003 at 13:24:36 -0700,
Ben Schneider <bcschnei@attbi.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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: bruno@wolff.to, bcschnei@attbi.com, pgsql-novice@postgresql.org
Subject: Re: [PHP] Case Insensitive Searching?
In-Reply-To: <20030525135630.GB1057@wolff.to>
References: <001301c32169$54d90fa0$5011a8c0@micronpc> <20030525135630.GB1057@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox