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

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

[复制链接]

96

主题

3

回帖

1323

积分

超级版主

积分
1323
金钱
228
贡献
996
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑   t/ q3 O; l! R4 o9 W& }3 G
$ t  b6 O* X$ ~
上线送时间( f& |. J5 `, a3 J
用查询分析器 必须在billing执行
3 ~3 B/ q' S; n0 C1 ]3 K! f
  1. CREATE TRIGGER [free] ON [dbo].[user_account]! H9 t, D; `8 f% R/ N% u
  2. after Insert( e8 ]7 a% y7 B8 @$ Q% K
  3. as
    ! A) r! A+ T* y# A: c/ K
  4. Update [user_account] set
    9 [- a* t/ Y3 r! U! s" D* y
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9# o* K0 A* `# E7 ~& L
  6. From Inserted
    ) j8 o& e5 M. Y2 M: w" R4 E
  7. Where [user_account].user_id=inserted.user_id
    , V- U! Z3 D  W6 t" T
  8. and [user_account].group_id=inserted.group_id- t& J4 O, _) M$ B3 _
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9  c1 u" o5 y) B, K
  10. where expire_freetime =2006-1-9
复制代码

, r) c; N) Z; f0 X* }% k0 H- R$ ], D2 j
上线送商币
- y: s6 N8 r7 u: ^. t用查询分析器 必须在 cash  Z0 \0 P  u1 [) Q  t5 p
) `5 e/ x, {& @, n, |( b; p) _
  1. CREATE TRIGGER [free] ON [dbo].[user_cash]
    2 e! Q  Q" _0 Z+ v2 W+ }
  2. after Insert
    - x" {/ Q7 g/ u9 u5 k
  3. as
    8 w9 r; z+ M8 q/ z6 Q/ _, b5 [
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
    * J) I- h# a2 w
  5. From Inserted 9 }/ E$ ?, l' E
  6. Where [user_cash].group_id=inserted.group_id
    * [* L% j: w& F/ Q& M
  7. and [user_cash].id=inserted.id
    $ I% Q( k3 k, |- \
复制代码

. u- k& B; x4 i) f; G2 G, J7 m: H$ }8 D4 ]! S( W+ S& Y  k
查询GM号
, J- W8 u) W- D9 h9 @( [
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

, o. ?9 W$ }0 o; z/ E4 j% \9 x2 d5 W, j# B3 ?  @5 X7 m- z

$ L7 @9 i& G, p7 j5 W$ c9 V! m5 @- H4 D8 I5 A0 a
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-5-18 18:23 , Processed in 0.031156 second(s), 23 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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