Change one character on a string?

Discussion in 'MySQL' started by vitoreis, Feb 2, 2012.

  1. #1
    Hi,

    Need sole ligths to do this:
    - find all 'ã' on my registers and change it to 'a'

    update MYTABLE set FIELD_NAME = replace(FIELD_NAME,'a','ã');
    Code (markup):
    Problem is: I have words as 'ãnt', 'nãt' or 'ntã' where my ã can be at the beggining, middle or end of the string... this table have more than 33000 :(

    Any help, please?

    Thank folks
     
    vitoreis, Feb 2, 2012 IP
  2. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    819
    Best Answers:
    7
    Trophy Points:
    320
    #2
    Use the MySql equivalent of CHRTRAN() or STRTRAN().
     
    mmerlinn, Feb 3, 2012 IP