Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已答复] 强烈要求补丁出XS个人空间的批量删除功能

[复制链接]
QOUU 发表于 2010-1-7 22:37:08 | 显示全部楼层 |阅读模式
现在群发广告很疯狂,一个个的删除每个几十个个人空间真是要累死
lidq.jingwu 发表于 2010-1-8 10:31:28 | 显示全部楼层
删除ss6中某一用户空间的所有数据:

  1. delete from supe_userspaces where uid=3;
  2. delete from supe_userspacefields where uid=3;
  3. delete from supe_spacecache where uid=3;
  4. delete from supe_spacecomments where uid=3;
  5. delete from supe_spaceitems where uid=3;
  6. delete from supe_spaceblogs  where itemid NOT IN(SELECT itemid FROM supe_spaceitems);
  7. delete from supe_spacefiles where itemid NOT IN (SELECT itemid FROM supe_spaceitems);
  8. delete from supe_spacegoods where itemid NOT IN (SELECT itemid FROM supe_spaceitems);
  9. delete from supe_spaceimages where itemid NOT IN (SELECT itemid FROM supe_spaceitems);
  10. delete from supe_spacenews where itemid NOT IN (SELECT itemid FROM supe_spaceitems);
  11. delete from supe_spacevideos where itemid NOT IN (SELECT itemid FROM supe_spaceitems);
  12. delete from supe_spacetags where itemid NOT IN (SELECT itemid FROM supe_spaceitems);
复制代码
这些SQL语句要指定uid的。
回复

使用道具 举报

 楼主| QOUU 发表于 2010-1-8 17:24:40 | 显示全部楼层
删除ss6中某一用户空间的所有数据:这些SQL语句要指定uid的。
lidq.jingwu 发表于 2010-01-08 10:31



    你这个方法根本就不算是办法,还不如直接在后台删除了,我需要的是批量删除
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-18 11:30 , Processed in 0.029190 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表