超级版主
- 积分
- 770
- 金钱
- 228
- 贡献
- 443
- 注册时间
- 2023-11-3
|
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 7 O( V8 p+ t$ g, B& L2 h
. U( F7 {1 s8 {- M上线送时间
6 @: ?- u- O; ^: ?4 b! v用查询分析器 必须在billing执行
9 W: n, O4 x+ Y" @6 A( U; u- CREATE TRIGGER [free] ON [dbo].[user_account]9 ?0 u% ] V1 D; r
- after Insert
" f- L- U$ V) N- X - as: S3 N2 d) j/ @ o, ]
- Update [user_account] set
2 Y. h! Z4 o7 y5 N2 k8 y - [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-98 L2 {. b1 u6 p6 _
- From Inserted
$ Y2 S y; r" @" L8 A# P. \ - Where [user_account].user_id=inserted.user_id a" Q3 e, X* L% x6 c6 ?2 p
- and [user_account].group_id=inserted.group_id1 P! y: J3 G; T1 c
- update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
( D7 I5 N# J$ n& Y. W Y2 D; f - where expire_freetime =2006-1-9
复制代码
* k4 S; @0 p( X" \/ \9 s) d( m* _0 y I* z
上线送商币
/ n6 C: {* W _用查询分析器 必须在 cash
( ^/ r) k9 K l4 d, n! a
! Z, K" j' ^* B3 j' \- CREATE TRIGGER [free] ON [dbo].[user_cash] + z3 c. H0 l$ z) o! M. h
- after Insert 3 P& J4 P5 R4 o5 ?/ q. x+ E$ E* }
- as
( P. ]+ `5 V8 C - Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
0 F2 e, @, H9 D" w - From Inserted
. S3 B% p8 N1 h& _9 @& m" N$ _ - Where [user_cash].group_id=inserted.group_id ; l* S2 P& C9 k
- and [user_cash].id=inserted.id
0 I/ F; L6 w+ L" t& p
复制代码 ; R' O, m9 [5 B" ?0 m
' o/ c, |: f" n$ N- Z/ E查询GM号
3 w% X/ c R" ]1 A& P9 d- selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
, f" H; H$ H+ h7 ~1 A+ r" e2 P& a- J. Y
: E% {/ [. `9 m
9 o# y4 S* S/ {: M8 t |
|