//栏目数据清零
update [!db.pre!]enewsclass set infos = 0, allinfos = 0 where classid=2 limit 1
注:如果不是全部清零请写上classid,全部清零代码:update [!db.pre!]enewsclass set infos = 0, allinfos = 0;
//后台登陆日志
TRUNCATE [!db.pre!]enewslog;
//后台操作日志
TRUNCATE [!db.pre!]enewsdolog;
//后台登陆失败
TRUNCATE [!db.pre!]enewsloginfail;
//清空NEWS表
TRUNCATE [!db.pre!]ecms_news;
TRUNCATE [!db.pre!]ecms_news_check;
TRUNCATE [!db.pre!]ecms_news_check_data;
TRUNCATE [!db.pre!]ecms_news_data_1;
TRUNCATE [!db.pre!]ecms_news_doc;
TRUNCATE [!db.pre!]ecms_news_doc_data;
TRUNCATE [!db.pre!]ecms_news_doc_index;
TRUNCATE [!db.pre!]ecms_news_index;
清除它的把news改一个就可以
//清空TAGS表
TRUNCATE [!db.pre!]enewstags;
TRUNCATE [!db.pre!]enewstagsclass;
TRUNCATE [!db.pre!]enewstagsdata;
执行是记得后面加“;”号。
评论前必须登录!
注册