mysql replace example
Example 1: mysql replace text
UPDATE
table_name
SET
column_name = REPLACE(column_name, 'text to find', 'text to replace with')
WHERE
column_name LIKE '%text to find%';
Example 2: mysql regex replace
REGEXP_REPLACE(expression, pattern, replacement[, position[, occurrence[, match_type]]])
Example 1 - remove all "-" characters
SELECT REGEXP_REPLACE( fieldname, '-', '' ) AS newfieldname FROM tablename