1:批量刪除回帖 pre_forum_post 表中存儲(chǔ)的是論壇帖子和回復(fù)。每增加一個(gè)帖子或者回復(fù),pid值+1.
first值為1的,代表是主題。first值為0的,代表是回帖。
delete from pre_forum_post where pid>3 and pid<16283795 and first=0;
2:批量刪除用戶簽名
update pre_common_member_field_forum set sightml='';
3:批量刪除N天前的用戶短消息
DELETE FROM pre_ucenter_pm_messages_0 WHERE dateline < 1353327620 ;
時(shí)間戳可以從這里轉(zhuǎn)換 http://tool.chinaz.com/Tools/unixtime.aspx
4:調(diào)整某個(gè)帖子的點(diǎn)擊數(shù)
UPDATE cdb_threads SET views=點(diǎn)擊數(shù) WHERE tid=主題編號(hào);
UPDATE `cdb_forums` SET `allowmediacode` = '1'
5:一次性關(guān)閉板塊fid20帖子
UPDATE `cdb_threads` SET `closed` = '1' WHERE `fid` =20 ;
更多信息請(qǐng)查看IT技術(shù)專欄