clear markdown compare help best fiddles feedback a leap of faith?
clear markdown donate comments/suggestions/bugs a leap of faith? bible365 diddy dollings
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0. 1228811 fiddles created (16674 in the last week).

CREATE TABLE dict ( [id] INT, [key] NVARCHAR(32), [val] NVARCHAR(32), ); INSERT INTO dict ( [id], [key], [val] ) VALUES (0, N'\', N'\\' ), (1, N'a', N'b'), (2, N'b', N'c'), (3, N'c', N'd') ;
4 rows affected
 hidden batch(es)

DECLARE @string NVARCHAR(256) = N'abc\defghijklmnopqrstuvw\x\xyz\\'; SELECT @string = REPLACE(@string, dict.[key], dict.[val]) FROM dict ORDER BY id ; SELECT @string;
(No column name)
 hidden batch(es)