找回密码
 立即注册
查看: 4402|回复: 0

[技术文章] 挑战上线自动送点卡.商城币.和查询GM号SQL执行语句

[复制链接]

96

主题

3

回帖

1267

积分

超级版主

积分
1267
金钱
228
贡献
940
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
. A$ c8 w' g9 @
2 X5 I. b. |6 q$ s0 ~上线送时间
# D0 ^; Y6 r9 e8 C. p3 A用查询分析器 必须在billing执行2 I4 j% E8 K( h
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    3 g) b3 Y# l$ V3 L* y
  2. after Insert
    ! c: p/ ~$ K! A1 f, R9 O: [
  3. as4 c- h* _4 P3 f3 `; }% l
  4. Update [user_account] set& \' Q) t9 U  @# x# O' [- U7 H' G, \
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    . D4 c& _& C1 G0 }7 g8 x" K$ V
  6. From Inserted% q" u/ @6 G: @5 X- Q* O/ c1 |
  7. Where [user_account].user_id=inserted.user_id
    0 s2 E' O! y& J
  8. and [user_account].group_id=inserted.group_id" a9 l1 L5 w, h, l
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-94 A6 A/ E( Z% N2 m
  10. where expire_freetime =2006-1-9
复制代码

( u3 g7 u! E* }" J
. {2 I' S+ V- K3 a上线送商币
  _6 e. d" P# r* L  A1 B2 K0 B用查询分析器 必须在 cash
. {# q& D/ [% m  y: f6 K6 ^
4 \" ^, \4 u, v0 L% R: C+ b8 V+ l  o
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] / J0 v- R- \+ w) Q+ |
  2. after Insert
    & v7 \( x0 D3 |1 z
  3. as
      m! X+ z1 _0 o/ r
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000. t& @7 M( ?0 S: b% P1 M: ^: l
  5. From Inserted
      o% w3 ~- A# K: j) i6 \
  6. Where [user_cash].group_id=inserted.group_id % X% e7 y7 Q/ i4 e5 W
  7. and [user_cash].id=inserted.id
    8 C7 O2 I7 @2 u; |% ^
复制代码

( T, P; Q# p# V; G& l5 _2 q) ~9 b% V) e
查询GM号' x) u4 h& W5 a' [6 n  q
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

; W& r+ {0 E! f) g" ~! x
7 Q9 N4 |+ `1 `7 a1 d/ T- E, ~) W) M7 s4 S0 T" g8 J
1 x: M5 W, o' _( K
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-2-12 05:16 , Processed in 0.047203 second(s), 22 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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