Re: locale and spanish acute - Mailing list pgsql-general

From Martín Marqués
Subject Re: locale and spanish acute
Date
Msg-id 20010913220823.DD91E2AB46@bugs.unl.edu.ar
Whole thread Raw
In response to Re: locale and spanish acute  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: locale and spanish acute  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general
On Mié 12 Sep 2001 21:52, Peter Eisentraut wrote:
> Martín Marqués writes:
> >
> > What does "accent-fold" mean?
>
> Convert all accented characters to some other characters in a way that is
> meaningful to you.

OK, I think I got what you told me.
lets see... I have this query:

select count(*) from tab1 where col1 LIKE '%mas%'

but I would like it to catch rows with "más" also.

The only thing I can think of is makeing a function that applied to col1
would give me col1 but without accents. Say the function is called
no_accents, so:

no_accents(más)=mas

Now, the problem is that I have little idea on making such a function. Is it
very difficult?

Saludos... :-)

--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués                  |        mmarques@unl.edu.ar
Programador, Administrador, DBA |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------

pgsql-general by date:

Previous
From: "Jeff Eckermann"
Date:
Subject: Re: maintaining sequences
Next
From: "Tamara D. Blum"
Date:
Subject: Query