您现在的位置是:首页 > 教程 > dedecms教程dedecms教程

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

雷友水2023-10-21 18:45:05dedecms教程已有人查阅

导读dedecms使用sql批量维护网站内容:1.将所有文档设置为“仅动态”:2.将所有文档设置为“仅静态”:头条[h]推荐[c]幻灯[f]特荐[a]滚动[s]加粗图片[p]跳转[j]

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

本文标签:

很赞哦! ()

留言与评论 (共有 条评论)
验证码:

本栏推荐

相关标签