SQL Replace multiple different characters in string
replace, sql, sql-server-2016
Solution
You just need to daisy-chain them:
REPLACE(REPLACE(T2.[ShipToCode], '&', 'and'), ',', '')
Problem
I need to replace multiple characters in a string. The result can't contain any '&' or any commas. I currently have: ``` REPLACE(T2.[ShipToCode],'&','and') ``` Which converts `&` to `and`, but how do you put multiple values in one line?