sql server replace string in text column code example
Example 1: sql replace character in string in all records
UPDATE employees
SET
phone_number = REPLACE(phone_number, '.', '-');
Example 2: replace string value in sql
UPDATE tableName SET fieldName = REPLACE(fieldName, 'fromStringValue', 'toStringValue');
Example 3: replace content value from old to new sql
Update tbl.Products
Set articlenumber = replace(articlenumber, 's401', 'I00010')