This article is tagged with:
Sql query with replace function
and mysql
sql query with replace function
##sql query with replace function
#syntax
UPDATE tableName
SET column_name = REPLACE(column_name, 'fromStringValue', 'toStringValue');
#Example
Update tbl_employee
Set designation = REPLACE(designation, 'SEO', 'Developer');
sql query to replace a value in table
Update tbl.Products
Set articlenumber = replace(articlenumber, 's401', 'I00010')
sql replace character in string in all records
UPDATE employees
SET
phone_number = REPLACE(phone_number, '.', '-');