From: | Cédric Dufour (public) <cdufour-public(at)cogito-ergo-soft(dot)com> |
---|---|
To: | "Pedro Igor" <pedroigor(at)aip(dot)com(dot)br>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Accent-insensitive |
Date: | 2002-12-06 20:33:10 |
Message-ID: | 007401c29d66$b1374690$3c8addd5@cednetwork.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Use the 'to_ascii' function to convert your string to the "no accent" ASCII
equivalent before accomplishing your comparison
SELECT foo FROM table WHERE ( to_ascii(foo) ILIKE to_ascii('caractères
accentués') );
This does not work with all database locale (LATIN1 is OK, but LATIN9 is
not).
I was actually wondering if this is efficient enough or if there is any more
efficient method to accomplish this...
Cédric D.
-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org
[mailto:pgsql-sql-owner(at)postgresql(dot)org]On Behalf Of Pedro Igor
Sent: Friday, December 06, 2002 14:31
To: pgsql-sql(at)postgresql(dot)org
Subject: [SQL] Accent-insensitive
Does have PostgreSQL some option to allow me execute selects
accent-insensitive ?
I can´t find any reference, including the manual ....
Pedro Igor
From | Date | Subject | |
---|---|---|---|
Next Message | Joel Burton | 2002-12-06 22:17:33 | Re: Accent-insensitive |
Previous Message | Bruce Momjian | 2002-12-06 19:10:46 | Re: SELECT FOR UPDATE locks whole table |