dedecms使用sql语句批量维护网站内容

2019-10-25 11:08:16 织梦安装使用
  • 文章介绍

dedecms使用sql批量维护网站内容:

1.将所有文档设置为“仅动态”:update dede_archives set ismake=-1
2.将所有文档设置为“仅静态”:update dede_archives set ismake=1

头条h推荐c幻灯f特荐a滚动s加粗图片p跳转j

sql批量删除全部文章

DELETE FROM dede_addonarticle
DELETE FROM dede_arctiny
DELETE FROM dede_archives

删除标题小于5个字的文档
DELETE FROM dede_addonarticle where aid in(select id from dede_archives where LENGTH(title)<10)
DELETE FROM dede_arctiny where id in(select id from dede_archives where LENGTH(title)<10)
DELETE FROM dede_archives where LENGTH(title)<10

删除内容小于100个字的文档
DELETE FROM dede_arctiny where id in(select aid from dede_addonarticle where LENGTH(body)<50)
DELETE FROM dede_archives where id in(select aid from dede_addonarticle where LENGTH(body)<50)
DELETE FROM dede_addonarticle where LENGTH(body)<50 dede

上一篇:DEDECMS php.ini register_globals m..

下一篇:dedecms留言本plus插件调用{dede:}标..

专业的织梦模板定制下载站,在线购买后即可下载!

商业源码

跟版网模板,累计帮助5000+客户企业成功建站,为草根创业提供助力!

立刻开启你的建站之旅

QQ在线客服

服务热线

织梦建站咨询