From: Guillaume LELARGE <guillaume.lelarge@gmail.com>
To: tnodev <tnodev@free.fr>
Cc: pgsql-sql@postgresql.org
Subject: Re: Like with special character
Date: Mon, 01 May 2006 10:51:09 +0200
Message-ID: <4455CBFD.3090200@gmail.com> (raw)
In-Reply-To: <4455BAD6.60001@free.fr>
References: <4455BAD6.60001@free.fr>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: guillaume.lelarge@gmail.com, tnodev@free.fr
Subject: Re: Like with special character
In-Reply-To: <4455CBFD.3090200@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox