-
车辆机油工业润滑油类网...
-
办公学习教程资讯类网站...
-
道路护栏交通设施类网站...
-
APP应用程序官网类网站织...
-
企业公司行业通用类网站...
-
灶具电器设备类网站织梦...
-
水上乐园设备类网站织梦...
-
中药药材百科资讯类网站...
-
LED显示屏中英双外贸类网...
-
环保设备研发制造类网站...
-
园林绿化景观建设类网站...
-
潮流资讯信息类网站织梦...
-
摄影拍摄短视频类网站织...
-
园林景观设计类网站织梦...
-
环保电动扫地车类网站织...
-
汽车配件类网站织梦模板...
-
网站建设营销类网站织梦...
-
新媒体自媒体运营资讯类...
-
水性工业漆类企业网站织...
-
农业机械设备类网站织梦...
DEDECMS的SQL命令批量替换
- 更改文章中的内容
update dede_addonarticle set body=replace(body,'原来的字符','替换后的字符')
解释
update dede_addonarticle set body=replace(body,’软件下载’,'插件下载’)
- 更改缩略图目录
update dede_archives set litpic=replace(litpic,'原来的字符','替换后的字符')
解释
update dede_archives set litpic=replace(litpic,’uplimg,’tupian’)
- 批量替换文章模型中内容部分图片链接路径
update dede_addonarticle set body=replace(body,'src="http://www.91084.com/img/','src="http://www.91084.com/images/');
解释
把图片路径由原来的http://www.91084.com/img/替换成http://www.91084.com/images/
- 批量替换文章模型中内容部分超链接
update dede_addonarticle set body=replace(body,'href="http://www.gezhancn.com','href="http://www.91084.com');
解释
把文章模型中的超链接由原来的http://www.gezhancn.com替换成http://www.91084.com
- 批量替换文章模型中内容部分图片锚文本文字
update dede_addonarticle set body=replace(body,'alt="http://www.gezhancn.com/','alt="http://www.91084.com/');
解释
把文章模型中的图片锚文本信息由原来的http://www.gezhancn.com替换成http://www.91084.com
- 批量替换软件模型内容部分超链接
update dede_addonsoft set introduce=replace(introduce,'href="http://www.gezhancncom/images/js/test.html','href="http:/www.91084.com/tag.html');
解释
把软件模型内容中超链接由原来的http://www.gezhancn.com/images/js/test.html替换成http:/www.91084.com/tag.htm
把软件模型内容中超链接由原来的http://www.gezhancn.com/images/js/test.html替换成http:/www.91084.com/tag.htm
- 批量替换文章模型中作者字段
update dede_archives set writer=replace(writer,'http://www.gezhancn.com','http://www.91084.com');
解释
把文章模型中的作者由原来的http://www.gezhancn.com替换成http://www.91084.com
- 批量替换文章模型中来源字段
update dede_archives set source=replace(source,'格展网络www.gezhancn.com','格展网络www.91084.com');
解释
把文章模型中的帖子来源由原来的格展网络www.gezhancn.com替换成格展网络www.91084.com
- 批量替换文章命名规则
update `dede_arctype` set namerule='{typedir}/{aid}.html';
解释
把站内所有文章模型命名规则全部替换成{typedir}/{aid}.html这样一种形式
- 批量替换软件模型演示地址超链接
update dede_addonsoft set writer=replace(officialUrl,'http:/www.gezhancn.com','http://www.91084.com');
解释
把软件模型原始地址超链接由原来的http:/www.gezhancn.com替换成http://www.91084.com
- 批量审核文章
update dede_archives set arcrank=0;update dede_arctiny set arcrank=0;update dede_taglist set arcrank=0;
解释
arcrank=0 仅动态
arcrank=0 仅动态




