select *,replace(articlecontent,'ueditor/jsp','pic/jsp') AS rep from article_content where articlecontent like '%ueditor/jsp%'
以上只是将显示结果集进行替换。
还可以进行替换字段中的部分值
比如 将字段值中的ueditor/jsp 替换成 pic/jsp ;字段值 <img title="3.jpg" src="/ueditor/jsp/upload/image/20160722/1469194406795064496.jpg">
update article_content set articlecontent=replace(articlecontent,'ueditor/jsp','pic/jsp') articlecontent like '%ueditor/jsp%'
相关标签: