UPDATE Tablo1 set B = REPLACE(B, 'aaa', 'bbb') WHERE B LIKE '%5%'