I have a SQL Server database called school
. I just want to find a string called www.yahoo.com
and replace with www.google.com
.
I have the find and replace do in whole database anyone can put a example of code of SQL query to do that?
I have a SQL Server database called school
. I just want to find a string called www.yahoo.com
and replace with www.google.com
.
I have the find and replace do in whole database anyone can put a example of code of SQL query to do that?
Please try below query on a particular column in SQL Server:
UPDATE school
SET column_name = REPLACE(column_name,'www.yahoo.com','www.google.com')
WHERE column_name LIKE '%www.yahoo.com%'