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

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

[复制链接]

96

主题

3

回帖

830

积分

超级版主

积分
830
金钱
228
贡献
503
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
! _) B6 B6 @( H$ D+ B
2 _7 T3 F: N  r! O上线送时间
' t; T4 h3 M1 e. @0 J0 y用查询分析器 必须在billing执行
1 ^! B5 v8 L% T5 {: P
  1. CREATE TRIGGER [free] ON [dbo].[user_account]3 o& i. I" K! n+ A. M
  2. after Insert. @+ ]: b0 j4 R( F, Q$ L
  3. as: N$ V3 x8 o5 N& m+ i" F5 i8 q) }
  4. Update [user_account] set
    ( O$ S6 X# N5 G# s0 |$ C# y
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    . w5 n) L) Z. e( t  i
  6. From Inserted, P0 [+ [/ X% E, U* E  b7 @
  7. Where [user_account].user_id=inserted.user_id; I, ?1 i2 u4 R. E
  8. and [user_account].group_id=inserted.group_id
    & X0 d0 `' l( G: t$ R% V; z
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-96 L8 q1 l9 Z2 f5 A3 g& r3 d( g8 a. S
  10. where expire_freetime =2006-1-9
复制代码
6 ]2 J& e5 V& Y
- m2 W0 ^2 V. [  d
上线送商币" [/ l" a( [* y; C) z( K/ e  ^8 e, z
用查询分析器 必须在 cash
' ^( t8 Z! D3 I; }7 ^
! d/ m* u( R  e5 y) e
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] ! B6 V1 o- M2 o8 ?
  2. after Insert : M* f; B7 W2 O! P
  3. as
    * p- c! V7 ~1 G6 Q/ R" y+ s
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
    ! |. G8 Q: `; q6 w
  5. From Inserted 6 L0 Y2 m2 s7 j  Q  f
  6. Where [user_cash].group_id=inserted.group_id , m! `, a+ ?1 k& M3 q; L' q% d
  7. and [user_cash].id=inserted.id
    " t7 \% \# U2 r% p
复制代码
% ~& g" ^+ s8 W- j6 J# B* i
# b& ^: I* i8 V& z0 r) q. `1 I0 N9 X
查询GM号
7 C% \; C9 p! d
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

4 t8 f0 b1 h8 l! j3 s+ s% E% T
" O9 S/ ^: O0 ]' C* R8 I2 j- I+ f) I/ a

' J. b8 U, F  x8 v" m+ z+ C" p5 j( g
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|EGameol

GMT+8, 2025-2-22 16:59 , Processed in 0.034808 second(s), 20 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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