Collection of SQL commands for batch content deletion by DiscuzX
Source: Internet
Author: User
1: delete replies in batches. the pre_forum_post table stores forum posts and replies. Each time a post or reply is added, if the pid value + 1. first value is 1, it indicates the topic. If the first value is 0, it indicates a reply. Deletefrompre_forum_postwherepid3andpid16284255andfirst0; 2: batch delete user signatures update 1: batch delete replies pre_forum_post tables store forum posts and replies. Each time a post or reply is added, the pid value is + 1.
If the first value is 1, it indicates the topic. If the first value is 0, it indicates a reply.
Delete from pre_forum_post where pid> 3 and pid <16288245and first = 0;
2: batch delete user signatures
Update pre_common_member_field_forum set sightml = '';
3: batch delete User short messages N days ago
Delete from pre_ucenter_pm_messages_0 WHERE dateline <1353327620;
Timestamp can be converted from here to http://tool.chinaz.com/Tools/unixtime.aspx
4: adjust the number of clicks of a post
UPDATE cdb_threads SET views = clicks WHERE tid = topic number;
UPDATE 'cdb _ forums' SET 'allowmediacode' = '1'
5: One-time closure of board fid20 posts
UPDATE 'cdb _ threads' SET 'closed '= '1' WHERE 'fid' = 20;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.