Answers for "replace part of string mysql"

PHP
9

mysql replace a character in a string

UPDATE users SET first_name = REPLACE (first_name, 'search', 'replace_with') where id > 0;
Posted by: Guest on June-20-2019
12

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%';
Posted by: Guest on June-26-2020
2

update part of a string in mysql

UPDATE table
SET field = REPLACE(field, 'string', 'anothervalue')
WHERE field LIKE '%string%';
Posted by: Guest on April-25-2021

Code answers related to "replace part of string mysql"

Browse Popular Code Answers by Language