织梦cms常用批处理SQL命令
批量替换文章缩略图仿站地址
update dede_archives set litpic=(REPLACE(litpic,/style/images/,/uploads/style/images/));
批量替换正文内容超链接:
update dede_addonarticle set body=replace(body,href=http://www.baidu.com,href=h...
批量替换文章缩略图地址:
update dede_archives set litpic=(REPLACE(litpic,'/style/images/','/uploads/style/images/'));
批量替换正文内容超链接:
update dede_addonarticle set body=replace(body,'href="http://www.baidu.com','href="http://www.adminbuy.cn');
批量替换正文内容:
update dede_addonarticle set body=replace(body,'原来的字符','替换后的字符')
批量替换正文中图片路径:
update dede_addonarticle set body=replace(body,'/uploads/','/目录/uploads/');
批量替换文章标题:
update 'dede_archives' set title=replace(title,'百度','谷歌');
批量替换描述中关键词:
update 'dede_archives' set description=replace(description,'百度','谷歌');
批量替换文章发布作者:
update dede_archives set writer='你需要修改的作者' WHERE writer='修改后';
批量替换文章来源:
update dede_archives set source='你需要修改的来源' WHERE source='修改后';
SQL替换命令:
UPDATE 表名 SET 字段 = REPLACE(字段,'替换内容','替换值')
表名dede_archives 字段litpic (这是文章列表的图片缩略图)
上一篇:dedecms 专题列表页不支持[dede:fulltitle]标签的解决方法
下一篇:织梦开启多站点支持后下载地址填https://出错的修复方法
相关仿站教程:
仿站咨询扫二维码


仿站教程推荐
- 相关链接:
- 教程说明:
织梦cms常用批处理SQL命令
。