标签:
SQL 语句:
update 表名 set 字段名=replace(cast(字段名 as varchar(2000)),‘需要被替换字符‘,‘用来替换的字符‘) where content like ‘%字符%‘
例:
update os_article set content=replace(cast(content as varchar(max)),‘http://www.cnblogs.com/eyren‘,‘http://anniekids.org‘) where content like ‘%http://www.cnblogs.com/eyren%‘
标签:
原文地址:http://www.cnblogs.com/eyren/p/4876996.html