#删除指定分类的文章
delete
from
xn_posts
using
xn_posts,
xn_term_relationships,
xn_term_taxonomy
where
xn_posts.id = xn_term_relationships.object_id
and
xn_term_relationships.term_taxonomy_id = xn_term_taxonomy.term_taxonomy_id
and
xn_term_relationships.term_taxonomy_id = 18(分类ID)
#删除分类
delete FROM `xn_term_relationships` where term_taxonomy_id = 18(分类ID)
WordPress批量删除指定分类下的所有文章
发表评论
热门文章
-
OneNice简洁大方且开源免费的WordPress主题 17726 阅读
-
Bootstrap4显示和隐藏元素 5225 阅读
-
mysql批量去除重复记录 4299 阅读
-
-
loadjs - javascript动态载入css和js文件 2183 阅读
-
BT宝塔中安装nodejs 2091 阅读
-
github无法加载或不显示图片问题 1962 阅读
-
Javascipt自定义哈希表 1617 阅读