From: Ed Loehr <ELOEHR@austin.rr.com>
To: Robert Hiltibidal <rob@y2k.state.il.us>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: [INTERFACES] Data Search
Date: Wed, 29 Dec 1999 10:02:15 -0600
Message-ID: <386A3087.4F04426D@austin.rr.com> (raw)
References: <3.0.6.32.19991229090633.0097a4a0@y2k.state.il.us>
> Both databases have a mixture of upper and lowercase characters. Is there a
> way to tell postgres to consider a match if the absolute character is the
> same regardless of case?
>
> Ex
> 'ROB' should also produce a hit if postgres encouters 'rob'
>
http://www.postgresql.org/docs/postgres/functions2470.htm
db=> create table t(s varchar);
CREATE
db=> insert into t values ('Joe');
INSERT 365513 1
db=> insert into t values ('JoE');
INSERT 365514 1
db=> insert into t values ('JOE');
INSERT 365515 1
db=> select * from t where s like 'joe';
s
-
(0 rows)
db=> select * from t where lower(s) like 'joe';
s
---
Joe
JoE
JOE
(3 rows)
Cheers,
Ed Loehr
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: ELOEHR@austin.rr.com, rob@y2k.state.il.us
Subject: Re: [INTERFACES] Data Search
In-Reply-To: <386A3087.4F04426D@austin.rr.com>
* 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