I\'ve got a table with two columns, ID and Value. I want to change a part of some strings in the second column.
ID
Value
Example of Table:
To make the query run faster in big tables where not every line needs to be updated, you can also choose to only update rows that will be modified:
UPDATE dbo.xxx SET Value = REPLACE(Value, '123', '') WHERE ID <= 4 AND Value LIKE '%123%'