From: Eugene Selkov Jr. <selkovjr@mcs.anl.gov>
To: Jerome Knobl <jknobl@mandanet.ch>
Cc: Mike Lemler <coronach@datacruz.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Case in-sensitive searches
Date: Wed, 20 May 1998 15:47:10 +0000
Message-ID: <3562FAFE.185F242D@mcs.anl.gov> (raw)
References: <3.0.5.32.19980518160401.007bd330@datacruz.com>
<35612DDB.6A86EDA3@mandanet.ch>
Jerome Knobl wrote:
>
> Hi,
>
> I found an inellegant sollution. You can put every character in uppercase
> like that :
>
> Select * From table_membres where upper(nom) like upper('myname');
>
I use a much less elegant solution that works extremely well for me. I
add a copy of the column to the table and fold it uppercase before I
load the table. I also do some additional processing in it, in order to
eliminate things that may interfere with indexing, such as accents in
European characters. The application then decides whether to search in
the original or in the processed copy of the column, but the original
data are always returned to the user.
--Gene
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-sql@postgresql.org
Cc: selkovjr@mcs.anl.gov, jknobl@mandanet.ch, coronach@datacruz.com
Subject: Re: [SQL] Case in-sensitive searches
In-Reply-To: <3562FAFE.185F242D@mcs.anl.gov>
References: <3.0.5.32.19980518160401.007bd330@datacruz.com> <35612DDB.6A86EDA3@mandanet.ch> <3562FAFE.185F242D@mcs.anl.gov>
* 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