Aug 23, 2004 #1 storm197 MIS Joined Oct 9, 2002 Messages 55 Location 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
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
Aug 23, 2004 #2 dbomrrsm Programmer Joined Feb 20, 2004 Messages 1,709 Location GB Look at REPLACE in BOL DBomrrsm [blue]DBomrrsm[/blue] Upvote 0 Downvote
Aug 23, 2004 Thread starter #3 storm197 MIS Joined Oct 9, 2002 Messages 55 Location CA 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. Upvote 0 Downvote
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.
Aug 23, 2004 #4 dbomrrsm Programmer Joined Feb 20, 2004 Messages 1,709 Location GB Dont think REPLACE aloows multiple values - sorry. DBomrrsm [blue]DBomrrsm[/blue] Upvote 0 Downvote
Aug 23, 2004 #5 SQLBill MIS Joined May 29, 2001 Messages 7,777 Location US 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 Upvote 0 Downvote
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