discuz运营一些常用sql语句

来自版块 Discuz教程
1334
0
温馨提示:如下载链接失效,请前往 问题反馈专用帖 进行反馈! 兔源码交流群:493651246
清零所有附件下载次数
  1. UPDATE pre_forum_attachment SET downloads = 0
复制代码

清零所有附件下载用户记录
同:清空所有用户的积分变化的记录

清零所有帖子的访问次数
  1. UPDATE pre_forum_thread SET views = 0
复制代码

清空所有用户的积分变化的记录【不是把所有用户的积分变成0,只是每次积分变化的记录】
  1. DELETE FROM pre_common_credit_log
复制代码

清空所有系统提醒消息
  1. DELETE FROM pre_home_notification
复制代码

清空所有站内短消息
  1. DELETE FROM `pre_ucenter_pm_lists` WHERE 1 ;
  2. DELETE FROM `pre_ucenter_pm_members` WHERE 1 ;
  3. DELETE FROM `pre_ucenter_pm_members` WHERE 1 ;
  4. DELETE FROM `pre_ucenter_pm_messages_0` WHERE 1 ;
  5. DELETE FROM `pre_ucenter_pm_messages_1` WHERE 1 ;
  6. DELETE FROM `pre_ucenter_pm_messages_2` WHERE 1 ;
  7. DELETE FROM `pre_ucenter_pm_messages_3` WHERE 1 ;
  8. DELETE FROM `pre_ucenter_pm_messages_4` WHERE 1 ;
  9. DELETE FROM `pre_ucenter_pm_messages_5` WHERE 1 ;
  10. DELETE FROM `pre_ucenter_pm_messages_6` WHERE 1 ;
  11. DELETE FROM `pre_ucenter_pm_messages_7` WHERE 1 ;
  12. DELETE FROM `pre_ucenter_pm_messages_8` WHERE 1 ;
  13. DELETE FROM `pre_ucenter_pm_messages_9` WHERE 1 ;
复制代码

全部评论 0

您需要登录后才可以回帖 立即登录
输入你要评论的内容......
0
0
0
返回顶部