Maison > Questions et réponses > le corps du texte
如题:DeDeCMS怎么替换文章内所有的链接
例如:
<a href="http://www.1.com/werw.html">abc1</a>
<a href="http://www.2.com/dir/werw.html">abc2</a>
<a href="http://www.1.com/2324.html">abc3</a>
可以写成PHP文件或mysql语句
迷茫2017-04-10 15:17:34
找到存放文章的数据表,例如叫tablename ,保存文章内容的字段叫 content
执行下列语句
sql
update tablename set content =replace(content,"httpA","httpB")