sql把一个字段中的特定字符替换成其他字符

将‘0654879’替换成‘0754879’

UPDATE dbo.SG_Functionality SET FunctionalityCode=REPLACE(FunctionalityCode,'06','07') WHERE Type=2 AND FunctionalityCode LIKE '06%'

原文地址:https://www.cnblogs.com/heyiping/p/11382365.html