Re: [INTERFACES] Case insensitive LIKE ? - Mailing list pgsql-interfaces

From D'Arcy" "J.M." Cain
Subject Re: [INTERFACES] Case insensitive LIKE ?
Date
Msg-id m11hv3P-0000bFC@druid.net
Whole thread Raw
In response to Re: [INTERFACES] Case insensitive LIKE ?  (Constantin Teodorescu <teo@flex.ro>)
List pgsql-interfaces
Thus spake Constantin Teodorescu
> Hannu Krosing wrote:
> >  select * from t where lower(name) like 'john%';
> Yes, it may work, but probably lower(name) won't work on ODBC->MS Access

Don't know about the M$ issue but if you do use the above you may want to
do the following to speed things up.

CREATE INDEX lower_name ON t (LOWER(name) text_ops);

A simple index on name won't help in the above query.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-interfaces by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: [INTERFACES] Case insensitive LIKE ?
Next
From: Wim Ceulemans
Date:
Subject: Re: [INTERFACES] Case insensitive LIKE ?