Re: Seaching without accents - Mailing list pgsql-general

From Bernd Helmle
Subject Re: Seaching without accents
Date
Msg-id 4017C75F.8000305@oopsware.de
Whole thread Raw
In response to Seaching without accents  ("Augusto Cesar Castoldi" <castoldi@npd.ufsc.br>)
List 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 by date:

Previous
From: Marco Lazzeri
Date:
Subject: Re: Seaching without accents
Next
From: Net Llama!
Date:
Subject: Re: Is autocommit=true bad?