sql server replace in string code example
Example 1: 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');
Example 2: replace string value in sql
UPDATE tableName SET fieldName = REPLACE(fieldName, 'fromStringValue', 'toStringValue');