Re: Accent insensitive search?

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Re: Accent insensitive search?
Дата
Msg-id bddc86150903180953g65ecee0ag8917266e1e01f0cc@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Accent insensitive search?  (Pedro Doria Meunier <pdoria@netmadeira.com>)
Ответы Re: Accent insensitive search?  (Thom Brown <thombrown@gmail.com>)
Список pgsql-general

2009/3/18 Pedro Doria Meunier <pdoria@netmadeira.com>
Hi,

use ILIKE

HTH,

ILIKE is only case-insensitive, and won't match accented characters.  The only thing I can think of doing is to create a function which will replace characters with their equivalent non-accented counterparts and use that in the query.

Example: SELECT name FROM people WHERE unaccent_string(name) ~* 'Pédro';

The function would perform a reg-ex replace similar to: s/[èééêë]/e

Just an idea

Thom

В списке pgsql-general по дате отправления:

Предыдущее
От: "cifroes"
Дата:
Сообщение: Re: Accent insensitive search?
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Accent insensitive search?