SQL更新某列包含XX的所有值 例如: id name 1 ab 2 c-d 3 e-f 需求 :去掉name内的所有‘-’的值 结果 id name 1 ab 2 cd 3 ef update 表名 set 字段=replace(字段,'-','')