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

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

[复制链接]

96

主题

3

回帖

1267

积分

超级版主

积分
1267
金钱
228
贡献
940
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
* V9 q5 B1 _' t) w
/ _- l: ~& |. q% l/ @上线送时间, }& F! ?0 Y. ?  f6 ~. L7 g
用查询分析器 必须在billing执行) \* b- u; C9 z% i/ I( U
  1. CREATE TRIGGER [free] ON [dbo].[user_account]2 j# y9 l  z+ V8 [8 ?, V
  2. after Insert
    - e. O, Q- a  p( J' S3 _
  3. as
    * b- @+ m. q. Q2 U1 }, m2 j# m; b/ a  g
  4. Update [user_account] set
      C$ ]" ^9 O6 X. J1 e
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9( v) w  y/ m5 t" i. A
  6. From Inserted1 [5 F& p% w! a; e
  7. Where [user_account].user_id=inserted.user_id
    ( L& N4 g2 M" J. Q# t' {
  8. and [user_account].group_id=inserted.group_id6 r" g+ j" x. D5 u3 o, e
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9/ X3 U  K" _3 b0 [
  10. where expire_freetime =2006-1-9
复制代码

- g, R0 A% o1 q; C, C/ A0 U2 L! ^
, S/ O1 C! S2 ^6 \0 q8 L上线送商币
- a2 z0 ]4 u3 B8 F8 @1 o用查询分析器 必须在 cash9 Q$ i2 d$ z4 B6 b) W. Y& D# |
) E& l: h- \% e; _8 b  \( U
  1. CREATE TRIGGER [free] ON [dbo].[user_cash]
      B/ m+ `% v) W9 _" m1 L
  2. after Insert * z$ ?  I1 b( p  d% i: C) Q
  3. as
    , ]% _# o  R2 R9 |' E& t
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
    / n1 D, J8 y. I
  5. From Inserted - y1 h4 L' u, a0 B3 }
  6. Where [user_cash].group_id=inserted.group_id 1 A! C1 H: _* m: j  t
  7. and [user_cash].id=inserted.id
    ) l1 l$ V5 |0 ~5 m9 u4 X* D1 l9 U
复制代码

6 d/ N0 q/ `" a" X2 N0 l* t
1 F1 X) i/ C$ t1 x( n- P查询GM号
1 w$ H  I. _7 Y
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

1 ?6 I! }3 P( l& a0 E  o4 u9 g# ]! |1 s6 G! z$ q; Z7 P6 W: ~" e4 d
3 @* u0 T8 S, m0 R9 ^: q
% H7 k- F1 {' `; O6 Y
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-2-19 08:31 , Processed in 0.197789 second(s), 21 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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