例如:
id name
1 ab
2 c-d
3 e-f
需求 :去掉name内的所有‘-’的值
结果
2 cd
3 ef
update 表名 set 字段=replace(字段,'-','')
posted on 2013-06-10 09:52 pass 阅读(244) 评论(0) 编辑 收藏 举报