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

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

[复制链接]

96

主题

3

回帖

1275

积分

超级版主

积分
1275
金钱
228
贡献
948
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 $ @# b) r5 C, z/ T) P

' g. e  G" |2 P3 D+ \" c上线送时间
9 {% R7 \* _8 ~4 G$ Z0 E用查询分析器 必须在billing执行
; l9 N: T- d; U: Y7 T5 x9 h: n1 l0 e
  1. CREATE TRIGGER [free] ON [dbo].[user_account]* j& c' w. f1 z5 G+ M# B( S7 z
  2. after Insert/ ]8 e) \  f* L' h) W: y
  3. as
    3 y7 ~, a7 ]" M7 i( i
  4. Update [user_account] set  K6 T  b- v( M- K. u( O0 S
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9( S5 f+ B" q( a
  6. From Inserted
    , t) M! ?& H1 A6 [2 Y
  7. Where [user_account].user_id=inserted.user_id
    4 \+ ~/ }4 C' e/ ?% z& a- e8 w  @
  8. and [user_account].group_id=inserted.group_id
    . k9 S* S- A" O3 u0 [+ P5 b
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
    & Z" r+ {+ v$ K2 f4 V, D3 x* h8 w; p
  10. where expire_freetime =2006-1-9
复制代码
' D1 i" D# D( t- \% p# d8 Q$ q

+ R4 |% h+ s* \0 C/ e上线送商币5 ~! ~) Y0 v8 Q! Q( a- L+ X
用查询分析器 必须在 cash
* C6 g. y; E: ]0 W& o6 ~% I; k
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] 2 \; \. `6 `8 b$ w! p
  2. after Insert ' F8 X5 b# x* w: m7 {* L9 I
  3. as
    ( W* _/ U, q4 y* z+ h" e% }! ~) G
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
    , d. g) n5 [( @. g
  5. From Inserted
    + y+ V# u1 s5 s, y" H/ Y
  6. Where [user_cash].group_id=inserted.group_id
    + E* x' r6 Q+ j' }" t7 y) [/ y
  7. and [user_cash].id=inserted.id9 a3 ]+ t4 L' d4 W" J
复制代码
/ q1 G# D6 Q+ g% m) @

" A! B, T5 F- r; g& ~7 z; W: D查询GM号
$ E8 q* l9 e( Q" J- c
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
4 Z4 S9 ~" G/ i/ H9 K

* S. ^& r) c* a2 C2 I: ?( J. C+ A. h8 f4 l5 d9 L

: P9 m' b* e6 y6 z
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-3-21 00:14 , Processed in 0.020625 second(s), 22 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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