Re: Like with special character

From: Guillaume LELARGE <guillaume(dot)lelarge(at)gmail(dot)com>
To: tnodev <tnodev(at)free(dot)fr>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Like with special character
Date: 2006-05-01 08:51:09
Message-ID: 4455CBFD.3090200@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Sim Zacks 2006-05-01 10:14:21 join on a like
Previous Message tnodev 2006-05-01 07:37:58 Like with special character