Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove "Accents" in a SQL Query

Status
Not open for further replies.

storm197

MIS
Oct 9, 2002
55
CA
Hi,

I want to know if there is a function in SQL that enable to remove accent from a field (example, convert é,è ou ê to e)

If not, is there a mean to do that ?

Thank you
 
Ok, it's working! If I put the following line, it works for the é :

SELECT REPLACE (GPM_E_ELE.nom,"é",'e')
FROM GPM_E_ELE;

But is there a mean to put multiple value in it (é, è or ê for example).

I'm really newbie at this.
 
Dont think REPLACE aloows multiple values - sorry.

DBomrrsm

[bandito] [blue]DBomrrsm[/blue] [bandito]
 
You would have to do it as multiple REPLACEs.

Code:
SELECT REPLACE (GPM_E_ELE.nom,'é','e'),
       REPLACE(GPM_E_ELE.nom, 'è', 'e'),
       REPLACE(GPM_E_ELE.nom, 'ê', 'e')
FROM GPM_E_ELE;

-SQLBill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top