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

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

[复制链接]

136

主题

189

回帖

3845

积分

管理员

积分
3845
金钱
1345
贡献
2175
注册时间
2023-11-3
QQ
发表于 2024-1-28 20:00:01 | 显示全部楼层 |阅读模式
  1. 5 \0 `& _" H5 `1 @$ V9 |- k

  2. : L/ v$ c* {) p
  3. use account;
    6 l$ k! }$ M! a1 f0 q
  4. DELETE FROM C_IP_BAN;
    ! D% {" E/ y, Z5 e+ ~
  5. DELETE FROM C_IP_PERMIT;  M/ W6 ?4 `, h1 G5 c
  6. DELETE FROM C_IP_PWD;
    * R, b/ v$ A: L
  7. DELETE FROM C_LOGINIPBLOCK_LOG;7 r3 T  c& `2 ]# e/ w' W
  8. DELETE FROM C_SEQUENCE;
    . k! ~8 z. c. s; g0 ~
  9. DELETE FROM CP_USER_PROFILE;
    8 N6 W3 B& [! B" [' v% p3 `
  10. DELETE FROM MB_USR_IP;
    ( R$ ^) P2 J/ W- ~
  11. DELETE FROM MB_USR_PUN;0 W/ e; H" q$ ^0 t# }# i% q1 y
  12. DELETE FROM Tbl_user;
    $ O- y, v  v" j% N% x* a) }/ P
  13. DELETE FROM USER_CONNLOG_KEY;3 S& M6 M4 O; F) P% h3 Y7 s+ D+ S8 e
  14. DELETE FROM USER_PROFILE;, K3 l; e0 j& F5 Z+ ]! h' c
  15. GO- x- l1 n& I8 l
  16. use billing;
    1 b: f4 v$ v. b! z; m  M& ?
  17. DELETE FROM bl_error_log;+ f+ L* K# n' F/ b" l' L
  18. DELETE FROM c_sequence;! @0 F7 F5 R! e" A% }
  19. DELETE FROM dba_online_daily;
    : N; X# v) h+ x
  20. DELETE FROM dba_online_daily_notok;9 d1 D* d! T5 p% y2 N1 y9 X
  21. DELETE FROM Tbl_KeepId;. P+ [& t7 R8 b7 ]0 h- H
  22. DELETE FROM user_account;
    0 s  X0 W& e/ G. Y& M9 }
  23. DELETE FROM user_account;8 |5 J: B' ?/ d) W1 ~1 d
  24. DELETE FROM user_charge_log;
    - K6 Y' `) L: }  k$ _6 }
  25. DELETE FROM user_everyday_use_info;
    $ W, N/ E0 P+ [# U0 Y9 T( o
  26. DELETE FROM user_give_log;
    ) S# K4 M2 E( A! d; l( Z+ A
  27. DELETE FROM user_use_log;
      m+ \: Y, l6 G5 j% {$ P7 X
  28. DELETE FROM user_use_log_bk;
    ! {- j3 ?$ J, l  Y/ m1 o1 l
  29. GO. Y* y8 {+ B3 h; z* @
  30. use cash;1 P5 v5 d, m2 b& v
  31. DELETE FROM bl_error_log;
    ) k, n, n3 p6 D+ ^$ P& j
  32. DELETE FROM Tbl_Cash_zj;
    1 u0 t& s5 t  Q) \4 N5 Z# p
  33. DELETE FROM user_cash;
    1 I2 ~4 f- Q9 Q
  34. DELETE FROM user_charge_log;
    9 u, @% o$ ~7 F. M$ u, H; \
  35. DELETE FROM user_use_log;
    # @6 z7 t4 u: U7 L0 D, v
  36. GO9 b$ K- {% b; M- x6 l8 U* f8 g
  37. use character;
    4 R4 R2 N& H: M" u9 Q0 b
  38. DELETE FROM C_EVENT_ITEM_OP
    , ]6 i! v! Z5 L
  39. DELETE FROM c_restword;2 w8 C5 [6 F9 E2 J3 ?
  40. DELETE FROM char_connlog;, s3 ~% c( `+ x1 w" y3 w; |9 ?
  41. DELETE FROM CHAR_CONNLOG_KEY;: v- _" W0 k' ?3 |. g
  42. DELETE FROM DEL_USER_CHAR_LIST;& l$ k/ U- D+ ^. ]3 [/ _1 {6 d. G# r
  43. DELETE FROM DEL_USER_CHAR_LIST_SECEDE;8 [' M: k9 N1 S+ O5 z5 x" R
  44. DELETE FROM GM_ITEM_MST;
    ; r) B: e- A2 d" l9 q7 M# S0 \
  45. DELETE FROM GUILD_CHAR_INFO;# s+ C$ v7 J  y6 l" H  z2 u* v1 @
  46. DELETE FROM GUILD_INFO
    . k" R- T; k; p* a9 c4 g' Y
  47. WHERE guild_code NOT LIKE 'MASTERCODE';
    5 H0 H- P, I$ o$ n
  48. DELETE FROM GUILD_INFO_SECEDE;
      G  x; n4 N# I) L8 E
  49. DELETE FROM GUILD_PEERAGE
    ' ^6 s4 w) s7 Q! \
  50. WHERE guild_code NOT LIKE 'MASTERCODE';
    % P3 V+ a% @8 |+ P5 ?
  51. DELETE FROM MSSNGR_CHAR_LIST;
    # ^- k5 k9 |  G7 w7 v7 ~
  52. DELETE FROM SIEGE_INFO;$ N  t2 j5 i$ _, W7 O  ~7 H4 f- g- [  f
  53. DELETE FROM SIEGE_RESULT_LOG;& ^. I. b4 B3 Z) v+ t* K! f$ m
  54. DELETE FROM user_bag
    % E: ^- G$ G3 a/ A# L
  55. WHERE character_no NOT LIKE 'DEKARON_000001';
    4 X5 O  q( H/ B1 j2 R
  56. DELETE FROM user_bag_copy;
    ) G& x% M) x! X
  57. DELETE FROM user_bag_secede;
    * t: p  K# |2 c& X; `9 E9 q0 C
  58. DELETE FROM user_character1 s0 v" i# r" v& @2 E
  59. WHERE character_no NOT LIKE 'DEKARON_000001';
    / e% m& U) P- r. z/ V; \* }6 e
  60. DELETE FROM user_character_secede;
    + r9 J9 H: r! O) \$ \
  61. DELETE FROM USER_POSTBOX;' A2 m7 \" V; W: ?% i1 I- s1 g6 ^
  62. DELETE FROM USER_POSTBOX_SECEDE;& o/ ~; `0 Y5 |6 N* B- k
  63. DELETE FROM User_Quest_Doing;
    : |' J( N( X, e7 V2 K5 P
  64. DELETE FROM user_quest_doing_secede;& X* @+ W6 ~, Q) U' X9 ]( s
  65. DELETE FROM User_Quest_Done;
    - _: `3 R0 B6 `9 ?+ q6 }
  66. DELETE FROM user_quest_done_secede;) L9 B1 L3 a1 N% h( j! B
  67. DELETE FROM user_skill
    ' q' L) O- I0 b$ U5 C; y
  68. WHERE character_no NOT LIKE 'DEKARON_000001';3 O, t/ i$ e8 G
  69. DELETE FROM user_skill_secede; f" E4 b$ S( m4 X' W& [
  70. DELETE FROM user_slot4 F9 w; N" q5 D; _, f% j3 j! t% o
  71. WHERE character_no NOT LIKE 'DEKARON_000001';
    * n2 N$ ?; f& P
  72. DELETE FROM user_storage;4 p2 ]$ _9 T( U
  73. DELETE FROM user_storage_copy;9 i" J  j, `# b- A5 k& z
  74. DELETE FROM USER_STORE;1 s" W3 Q3 `9 y1 M) m+ R
  75. DELETE FROM USER_STORE_copy;: g. \6 i. x& q9 @
  76. DELETE FROM USER_STORE_SECEDE;
    / E3 s' ?6 t( `6 ]9 ^/ m7 U/ O
  77. DELETE FROM user_suit
    4 J5 x3 S" d4 h, e9 i; i" p
  78. WHERE character_no NOT LIKE 'DEKARON_000001';
    , B+ G9 n) }# u: }5 t1 `
  79. DELETE FROM user_suit_copy;+ s2 f) i1 H$ @+ Z. I8 u) r( A
  80. DELETE FROM user_suit_secede;% T" S  p4 \2 O. T0 o
  81. GO
复制代码

9 H5 x8 p! C5 n  A, v* F1 g$ K+ K& Z/ }, p3 I3 ]
商业服务端 登录器 网站 出售

8

主题

231

回帖

863

积分

高级会员

积分
863
金钱
528
贡献
91
注册时间
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

主题

128

回帖

574

积分

中级会员

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

0

主题

65

回帖

1661

积分

金牌会员

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

136

主题

189

回帖

3845

积分

管理员

积分
3845
金钱
1345
贡献
2175
注册时间
2023-11-3
QQ
 楼主| 发表于 2024-10-16 16:39:16 | 显示全部楼层
大张 发表于 2024-10-16 14:56
) @7 U: k9 w* U4 `( T语句 出现 乱码 请  改正一下 哦  谢谢 了 ~~~~~~~~~~~~~~!
  w$ N: Y8 g2 q4 _4 D
帖子里面有复制功能
商业服务端 登录器 网站 出售
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|EGameol

GMT+8, 2025-4-4 12:19 , Processed in 0.042646 second(s), 22 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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