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.
|
- [SQL] Accent-insensitive Pedro Igor
- Re: [SQL] Accent-insensitive Cédric Dufour (public)
- Re: [SQL] Accent-insensitive Joel Burton
- Re: [SQL] Accent-insensitive Joel Burton