找回密码
 立即注册
查看: 1917|回复: 5

[技术文章] 数据库清档SQL语句

[复制链接]

128

主题

145

回帖

2422

积分

管理员

积分
2422
金钱
870
贡献
1279
注册时间
2023-11-3
QQ
发表于 2024-1-28 20:00:01 | 显示全部楼层 |阅读模式

  1.   w, ]: E! I6 l  [
  2. ' _) \! l4 V% Z. O# ]
  3. use account;: a3 k' z5 L5 A, ^9 Q3 a
  4. DELETE FROM C_IP_BAN;+ [# o9 N9 w8 n/ }0 s* k
  5. DELETE FROM C_IP_PERMIT;
    7 @- a% `2 N" }: e5 I7 E8 J
  6. DELETE FROM C_IP_PWD;% n  f, E/ k( H$ [6 z) i9 S
  7. DELETE FROM C_LOGINIPBLOCK_LOG;, C: g. X% V+ [  K1 E8 b
  8. DELETE FROM C_SEQUENCE;* r0 }" ?! B0 @( I
  9. DELETE FROM CP_USER_PROFILE;. Z/ I# i0 Y' w4 _9 o
  10. DELETE FROM MB_USR_IP;* K# U! }3 @% u' |
  11. DELETE FROM MB_USR_PUN;
    # k# V$ ?* g2 k& N5 N8 P
  12. DELETE FROM Tbl_user;: F8 ]& ], N" v. A; }" z# l
  13. DELETE FROM USER_CONNLOG_KEY;0 O, z* i0 x0 R$ v( @; K5 }) f5 U: N
  14. DELETE FROM USER_PROFILE;) E5 E2 e+ d3 Z6 L4 d1 H6 I9 K
  15. GO
    9 A' R$ V# b6 V( ?4 U
  16. use billing;
    2 l# c4 m& [$ b4 Q+ g+ Y
  17. DELETE FROM bl_error_log;
    : k, N: a' j5 q4 j  Z
  18. DELETE FROM c_sequence;
    % u! z* \/ n* F/ A: [
  19. DELETE FROM dba_online_daily;
    3 H1 x! J6 o2 r
  20. DELETE FROM dba_online_daily_notok;  L  j) k# ^: w6 L! P; }2 {
  21. DELETE FROM Tbl_KeepId;6 v  s% ~1 S( n3 x' z3 d
  22. DELETE FROM user_account;8 }5 R. I7 }) J. c4 V: [( v
  23. DELETE FROM user_account;& i, T+ u  d& m' n, i" c
  24. DELETE FROM user_charge_log;
    ( m* A8 ]& {+ W! n) a& U1 y
  25. DELETE FROM user_everyday_use_info;" ~; |" ^# d1 [+ A6 G
  26. DELETE FROM user_give_log;
    , C9 w1 i# T' y# e8 S& i7 E/ |8 F
  27. DELETE FROM user_use_log;& l9 g" l/ _: f% A
  28. DELETE FROM user_use_log_bk;
    2 Y+ Y( Q" G- o4 ^
  29. GO
    ( E9 H9 n# m) N- b% G( ~, ^
  30. use cash;+ _3 K" z. X1 k6 l$ O- D2 }$ z+ S0 _& c
  31. DELETE FROM bl_error_log;
    2 p, h! n8 D$ o8 @: e, ?2 y
  32. DELETE FROM Tbl_Cash_zj;5 S0 R7 s3 F8 ]" F
  33. DELETE FROM user_cash;5 C; [& P( K/ u
  34. DELETE FROM user_charge_log;
    $ Y' A  o4 J& t& Q' W
  35. DELETE FROM user_use_log;
    3 \' ^# w% I+ b! z
  36. GO) m1 T1 H4 {: |0 u  N/ z4 q) Y
  37. use character;
    # [9 v" ^8 z5 j7 u
  38. DELETE FROM C_EVENT_ITEM_OP+ p' F, f- `# D, P) X
  39. DELETE FROM c_restword;+ u5 H- y# Q) g0 S, o
  40. DELETE FROM char_connlog;. |( j6 U/ a- A8 L% g; F
  41. DELETE FROM CHAR_CONNLOG_KEY;
    7 k0 j; b; ~7 `0 a8 N) |' u5 }
  42. DELETE FROM DEL_USER_CHAR_LIST;+ o; j2 r1 P2 [) E4 w
  43. DELETE FROM DEL_USER_CHAR_LIST_SECEDE;
    ; r; y8 i! ]2 l* Y
  44. DELETE FROM GM_ITEM_MST;: a& ^  O; D1 k  m
  45. DELETE FROM GUILD_CHAR_INFO;
    " o. V! J- F4 a, @
  46. DELETE FROM GUILD_INFO6 l% J$ {8 X: T* T3 Z6 r. {3 w
  47. WHERE guild_code NOT LIKE 'MASTERCODE';$ Q: T& X5 m2 o3 ^. B. c7 U
  48. DELETE FROM GUILD_INFO_SECEDE;' N1 [9 M4 d$ s% X$ y& N) w
  49. DELETE FROM GUILD_PEERAGE
    " r, q3 L; b0 {& E# K# _
  50. WHERE guild_code NOT LIKE 'MASTERCODE';
    . }  s; `& [4 @$ G  r8 r
  51. DELETE FROM MSSNGR_CHAR_LIST;
    8 a% V" S/ U. R3 A$ k" R5 g3 N2 K; J
  52. DELETE FROM SIEGE_INFO;
    & Z2 {4 q2 O- {
  53. DELETE FROM SIEGE_RESULT_LOG;1 ]2 s: c% g; P+ g* t
  54. DELETE FROM user_bag% x* T( T# P1 R7 P4 @+ R7 ^
  55. WHERE character_no NOT LIKE 'DEKARON_000001';( p% c' W! ~  v! ~! O7 h
  56. DELETE FROM user_bag_copy;4 h' J- `1 A  P
  57. DELETE FROM user_bag_secede;
    ) {% \" f* a7 s6 D, k  P  }7 a
  58. DELETE FROM user_character. ], z4 x' b! u* A9 j
  59. WHERE character_no NOT LIKE 'DEKARON_000001';
    8 J0 [8 p2 Q% o- c8 m9 p
  60. DELETE FROM user_character_secede;% Z6 m/ p8 `) u' c: X) o
  61. DELETE FROM USER_POSTBOX;
    - r% v/ P, @  _4 O0 W9 E) K
  62. DELETE FROM USER_POSTBOX_SECEDE;
    , N, y" U& m5 f/ H6 y
  63. DELETE FROM User_Quest_Doing;
    - N' y# ?5 n5 R- r
  64. DELETE FROM user_quest_doing_secede;
    " f6 }0 Z8 c9 S$ g3 t+ ^
  65. DELETE FROM User_Quest_Done;
    # s, K0 V  Q  U6 K
  66. DELETE FROM user_quest_done_secede;8 P) h6 h0 j- x
  67. DELETE FROM user_skill% H, u- x' ~+ I8 j% v4 D, ~4 s" |. X0 E
  68. WHERE character_no NOT LIKE 'DEKARON_000001';
    " k: ^, {; V4 z
  69. DELETE FROM user_skill_secede
    " Q9 k, Z  `+ d6 Z
  70. DELETE FROM user_slot. C# P8 @2 N, E7 _/ l
  71. WHERE character_no NOT LIKE 'DEKARON_000001';- U1 W: x: h) H3 N* i7 U. z; g: L
  72. DELETE FROM user_storage;7 r9 y. e; i5 F% W9 _6 ]1 ?% [3 V
  73. DELETE FROM user_storage_copy;; K' N' }" Q0 y4 {% r7 Y+ t# N' g
  74. DELETE FROM USER_STORE;! @! N5 r  ]* s  k, k7 M! b
  75. DELETE FROM USER_STORE_copy;
    3 z4 q! X& _" c9 Y
  76. DELETE FROM USER_STORE_SECEDE;; D$ @9 q' \5 b1 a$ W' n
  77. DELETE FROM user_suit
    * y# R; D) [6 i( \. h* Z8 m3 I  O
  78. WHERE character_no NOT LIKE 'DEKARON_000001';
    / h- ^* G9 p, ~1 ~0 N& Y
  79. DELETE FROM user_suit_copy;9 ?# I: @) ]; S3 T; S/ ]+ K
  80. DELETE FROM user_suit_secede;
    ) g3 E) ~4 n% k, o! Z; m7 f" P
  81. GO
复制代码

. `; \) x) Q4 J
4 v; e# N5 u9 d/ b
商业服务端 登录器 网站 出售

8

主题

223

回帖

732

积分

高级会员

积分
732
金钱
400
贡献
96
注册时间
2023-11-10
发表于 2024-1-29 15:23:38 | 显示全部楼层
我是来学习的!

21

主题

378

回帖

1013

积分

高级会员

积分
1013
金钱
445
贡献
169
注册时间
2024-1-20
发表于 2024-1-31 23:10:21 | 显示全部楼层
感谢楼主分享!!

0

主题

117

回帖

326

积分

中级会员

积分
326
金钱
178
贡献
31
注册时间
2024-9-19
发表于 2024-10-15 23:11:27 | 显示全部楼层
干活学习

0

主题

63

回帖

1016

积分

高级会员

积分
1016
金钱
710
贡献
243
注册时间
2023-11-23
发表于 2024-10-16 14:56:13 | 显示全部楼层
语句 出现 乱码 请  改正一下 哦  谢谢 了 ~~~~~~~~~~~~~~!

128

主题

145

回帖

2422

积分

管理员

积分
2422
金钱
870
贡献
1279
注册时间
2023-11-3
QQ
 楼主| 发表于 2024-10-16 16:39:16 | 显示全部楼层
大张 发表于 2024-10-16 14:56) U/ h" L) r3 j+ H
语句 出现 乱码 请  改正一下 哦  谢谢 了 ~~~~~~~~~~~~~~!

0 T8 e4 K' @8 p# C9 m9 ~1 R帖子里面有复制功能
商业服务端 登录器 网站 出售
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|EGameol

GMT+8, 2024-11-26 10:26 , Processed in 0.066534 second(s), 22 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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