sql 替换字段中的部分字符,替换指定字符

问题:将商品表里名称包含‘’中心回转接头‘’的物料名称,改为‘回转中心接头’

解决方法:使用replace函数

update Product set ProductName=REPLACE(ProductName,'中心回转','回转中心') where ProductName like'%中心回转接头'

原文地址:https://www.cnblogs.com/webwangjie/p/11265131.html