批量取消指定关键词文章
               
                来源:本站原创
                点击数: 次
                发布时间:2023年05月05日
            
            
            问题描述:如何批量取消发布关键词中带有某个词语的文章?
解决方案:使用sql语句进行处理(注意操作数据库前请先做好备份)
查询文章数量:
select count(1) from PE_ContentManage_Article where Keyword like '%XXX%' and NodeId in (select NodeId from PE_ContentManage_Node where MoldId=1)
取消发布:
update PE_ContentManage_Article set Status=98 where Keyword like '%XXX%' and NodeId in (select NodeId from PE_ContentManage_Node where MoldId=1)
