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

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

[复制链接]

96

主题

3

回帖

684

积分

超级版主

积分
684
金钱
224
贡献
361
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 0 m) `( o) t) i# D; V

9 w6 ~( C0 j& M上线送时间
2 T* J7 C2 \+ y用查询分析器 必须在billing执行
+ x' P# k  O: f. d9 X: k% F" P: C6 ~
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    # I$ o, x# c* i4 F
  2. after Insert5 Z$ M* s* S- }" L7 _4 w* `
  3. as
    & Q5 O) u. n3 ?7 r) u; i
  4. Update [user_account] set# k8 P" a. `9 x3 u! v" c+ C! `9 b* N5 {
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9; ^8 [/ U  s1 b3 j# ?' p8 @
  6. From Inserted
    8 l, \. d0 J) n" q; n5 O
  7. Where [user_account].user_id=inserted.user_id( `6 D, a5 L+ v8 }8 r' r% d
  8. and [user_account].group_id=inserted.group_id# B/ U" n( T4 _- d, \1 u
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
    5 J, b  o2 F! o3 P  l0 e  `
  10. where expire_freetime =2006-1-9
复制代码

# F2 b; j2 J% w' q& R
2 r! t# i4 c3 B) {7 [上线送商币
5 B2 D( d9 I1 C8 t, }: r用查询分析器 必须在 cash
/ v$ B9 `7 h% M7 }& P' ~: T6 t9 @+ o1 H/ q/ P0 I7 r) C
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] % M, d% n! d5 x0 L- w# t
  2. after Insert 9 c; g3 J! H7 |  u
  3. as
    : I) X- J% D9 ?6 o& h* T& S, l
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=9000000000 Y7 v' I$ _3 Z# ~0 K4 C" Y
  5. From Inserted 2 T, g. U' O- H. f" c
  6. Where [user_cash].group_id=inserted.group_id 3 M5 \" m* S" |4 u
  7. and [user_cash].id=inserted.id& Q$ w  j9 M/ Y* c$ n, U4 N' C% J3 a
复制代码

4 A( a/ C; [  S6 M
) T& o& n- F, B. I查询GM号% U* t' n! ]) h/ O
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
, p9 Z3 `% J; U& \6 \6 ?( @; w
2 x  ?0 n! w; Y$ [  o; t
+ \5 [9 B% W' o: i9 e4 ^$ s: P
& y( G& w5 l. a1 {, y+ `, Y3 @/ x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|EGameol

GMT+8, 2024-6-10 14:51 , Processed in 0.189746 second(s), 31 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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