Re: Seaching without accents

Поиск
Список
Период
Сортировка
От Bernd Helmle
Тема Re: Seaching without accents
Дата
Msg-id 4017C75F.8000305@oopsware.de
обсуждение исходный текст
Ответ на Seaching without accents  ("Augusto Cesar Castoldi" <castoldi@npd.ufsc.br>)
Список pgsql-general
Augusto Cesar Castoldi wrote:

>
>
> SELECT * FROM test WHERE name LIKE “tes%”
>
>
>
> And it should return values “tést, test”
>

Why not using a regular expression, like this:



yomama=# select * from test;
  name
------
  test
  tést
  tèst
  tast
(4 rows)

yomama=# select * from test where name ~ '^t[eéè]s';
  name
------
  test
  tést
  tèst
(3 rows)


   Bernd


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

Предыдущее
От: Marco Lazzeri
Дата:
Сообщение: Re: Seaching without accents
Следующее
От: Net Llama!
Дата:
Сообщение: Re: Is autocommit=true bad?