Re: Like with special character - Mailing list pgsql-sql

From Guillaume LELARGE
Subject Re: Like with special character
Date
Msg-id 4455CBFD.3090200@gmail.com
Whole thread Raw
In response to Like with special character  (tnodev <tnodev@free.fr>)
List pgsql-sql
Hi,

tnodev a écrit :
> I'm using postGre with tables which contain French character (éèçàù...).
> Is there a fonction which performs a like in replacing é (e cute) by e ?
> 

select translate('forêt', 'àâäéèêëîïôöùûü', 'aaaeeeeiioouuu');

Change the first word (forêt) by the string you want characters to be
replaced.

For more, see : http://docs.postgresqlfr.org/pgsql-8.1.3-fr/functions-string.html   (french docs)
http://www.postgresql.org/docs/8.1/interactive/functions-string.html  (english docs)
 

BTW, it is PostgreSQL, not postGre.

Regards,


-- 
Guillaume.


pgsql-sql by date:

Previous
From: tnodev
Date:
Subject: Like with special character
Next
From: "mlartz@gmail.com"
Date:
Subject: Re: join on a like