Re: case insensitive matching - Mailing list pgsql-general

From Mitch Vincent
Subject Re: case insensitive matching
Date
Msg-id 00fe01c02d5a$128e34f0$0200000a@doot
Whole thread Raw
In response to case insensitive matching  (Robert Kernell <kernell@sundog.larc.nasa.gov>)
List 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@sundog.larc.nasa.gov>
To: <pgsql-general@postgresql.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@sundog.larc.nasa.gov
>
>


pgsql-general by date:

Previous
From: "Adam Lang"
Date:
Subject: Re: case insensitive matching
Next
From: Doug Budny
Date:
Subject: Re: case insensitive matching