-
成人高考自考教育机构类...
-
中英双语建材装饰类网站...
-
发电机设备出售租赁类网...
-
教育机构资格证书类网站...
-
餐具类网站织梦模板(自...
-
信息技术软件类网站织梦...
-
鲜花商城购物类网站织梦...
-
水上游乐园设备类网站织...
-
短视频直播带货类网站织...
-
婚纱摄影定制类网站织梦...
-
服装时装设计类网站织梦...
-
汽车用品配件类网站织梦...
-
茶叶茶道类网站织梦模板...
-
搬家公司类网站织梦模板...
-
网站建站优化推广类网站...
-
PPT素材下载类网站织梦模...
-
商标注册会计服务类网站...
-
电子设备产品类网站织梦...
-
有机肥料化肥类网站织梦...
-
艺术家居设计类网站织梦...
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 仅动态