Answers for "mysql replace string based on regex"

SQL
0

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
Posted by: Guest on November-06-2020

Code answers related to "mysql replace string based on regex"

Code answers related to "SQL"

Browse Popular Code Answers by Language