Re: [INTERFACES] Case insensitive LIKE ?

Поиск
Список
Период
Сортировка
От D'Arcy" "J.M." Cain
Тема Re: [INTERFACES] Case insensitive LIKE ?
Дата
Msg-id m11hv3P-0000bFC@druid.net
обсуждение исходный текст
Ответ на Re: [INTERFACES] Case insensitive LIKE ?  (Constantin Teodorescu <teo@flex.ro>)
Список 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 по дате отправления:

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: [INTERFACES] Case insensitive LIKE ?
Следующее
От: Wim Ceulemans
Дата:
Сообщение: Re: [INTERFACES] Case insensitive LIKE ?