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

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

[复制链接]

96

主题

3

回帖

684

积分

超级版主

积分
684
金钱
224
贡献
361
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
+ M& O8 F: M) V& R; h
5 K3 d# M+ H3 |' n上线送时间
7 p9 Q+ U. k/ W  h* V3 d) s) e, P* G用查询分析器 必须在billing执行* P3 ~1 x2 x+ Y* Z
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    % Q! y  q+ _  N4 Q
  2. after Insert9 [/ z) ^& m) V1 A
  3. as
    ( u0 u6 c% f. ~' X
  4. Update [user_account] set0 a5 c  g: M2 p
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    & K  x' s; U7 p' s3 i' d
  6. From Inserted, W, m9 J, f% T6 [* W& l; U
  7. Where [user_account].user_id=inserted.user_id
    1 y: I: `1 _2 a0 q
  8. and [user_account].group_id=inserted.group_id
    ( k8 V% M* h# C1 u) ?
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9  e: t* ?% C1 I* _" {* d' i: V( w
  10. where expire_freetime =2006-1-9
复制代码

- {$ x/ Q5 S8 g. b# c" O7 B3 y& b
上线送商币
6 G/ w% x4 ~; n( t' q% B/ l; M# I8 _用查询分析器 必须在 cash
6 F0 ^9 \0 }# G1 @! S2 ^5 T: ^: Q0 K  s
  1. CREATE TRIGGER [free] ON [dbo].[user_cash]
    . z- I, N7 M( I+ x  }7 T: f9 V
  2. after Insert % o: y7 a! J. r1 |2 Q6 w9 O
  3. as
    - j' l+ P6 j5 W& b& f
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000) i" J% {2 a7 q( e/ b! |
  5. From Inserted
    7 x6 s0 z# a+ G
  6. Where [user_cash].group_id=inserted.group_id 2 w$ t4 ^9 W: H5 v* v1 y& b
  7. and [user_cash].id=inserted.id
    2 i# l* G+ S4 B' z; d+ {
复制代码

; `! G, [1 s# d, J- n" r. S/ o/ o( B) M% v7 J5 e- M
查询GM号5 T2 z7 S( |9 J! P) X# c# i
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
# B3 i( c% k1 O

+ o4 t- b: {/ O" H- S, w! J& n/ y. m; Y2 X; }, A8 L

2 e" r7 @' v% V$ A4 j) j; N
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|EGameol

GMT+8, 2024-6-8 16:11 , Processed in 0.175511 second(s), 31 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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