Mysql – SQL Update and replace substring

MySQLsql

I want a query in SQL that change all 'a' in string to 'b' in first_name column in name table.
Here is my columns name:
first_name | list_name

Best Answer

use REPLACE()

UPDATE tableName
SET first_name = REPLACE(first_name, 'a', 'b')

but remember that REPLACE() is case sensitive.