Re: Accent insensitive search - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Accent insensitive search
Date
Msg-id 20030701194215.GC25995@dcc.uchile.cl
Whole thread Raw
In response to Accent insensitive search  (Alejandro Javier Pomeraniec <apomeraniec@buenosaires.gov.ar>)
List pgsql-general
On Tue, Jul 01, 2003 at 03:11:54PM +0000, Alejandro Javier Pomeraniec wrote:

> Hi ! Does anyone knows how to make accent insensitive searches??

Convert both the pattern and the column to ASCII with to_ascii

> SELECT * FROM testtable WHERE testfield like '%olo%';

SELECT * FROM testtable WHERE to_ascii(testfield) like '%olo%';

Do you know the pgsql-ayuda mailing list?  You may like it.
http://tlali.iztacala.unam.mx/mailman/listinfo/pgsql-ayuda

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Pensar que el espectro que vemos es ilusorio no lo despoja de espanto,
sólo le suma el nuevo terror de la locura" (Perelandra, CSLewis)

pgsql-general by date:

Previous
From: Ian Barwick
Date:
Subject: Re: Accent insensitive search
Next
From: Bruno Wolff III
Date:
Subject: Re: updating data but the constraint is set "immediate"