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