Alternatively replace string function mysql

In a recently doing the project, existed before the discovery data in the database name wrong, because the large amount of data, so the Internet to find a way to replace

The bk_keben table name field ' elective ' to ' mandatory '
the UPDATE bk_kebenthe SET = the REPLACE name (name, 'elective', 'compulsory');

Guess you like

Origin blog.51cto.com/14430849/2417080