From: | "Mitch Vincent" <mitch(at)venux(dot)net> |
---|---|
To: | "Robert Kernell" <kernell(at)sundog(dot)larc(dot)nasa(dot)gov> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: case insensitive matching |
Date: | 2000-10-03 16:50:43 |
Message-ID: | 00fe01c02d5a$128e34f0$0200000a@doot |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Regular expression operator, ~* (Can't use indexes)
You can still use LIKE but you have to do it like :
SELECT * FROM names WHERE lower(firstname) LIKE lower('Mitch');
If you wanted to make this use indexes, you could create the index using
lower(fieldname) .. Something like :
CREATE INDEX on names lower(firstname)
Good luck!
-Mitch
----- Original Message -----
From: "Robert Kernell" <kernell(at)sundog(dot)larc(dot)nasa(dot)gov>
To: <pgsql-general(at)postgresql(dot)org>
Sent: Tuesday, October 03, 2000 9:41 AM
Subject: [GENERAL] case insensitive matching
> Hi. LIKE does case sensitive string matching. Is there an easy way to do
case
> insensitive string matching?
>
> Bob Kernell
> Research Scientist
> AS&M
> email: kernell(at)sundog(dot)larc(dot)nasa(dot)gov
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Doug Budny | 2000-10-03 16:53:14 | Re: case insensitive matching |
Previous Message | Adam Lang | 2000-10-03 16:46:36 | Re: case insensitive matching |