|
|
本帖最后由 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- CREATE TRIGGER [free] ON [dbo].[user_account]! H9 t, D; `8 f% R/ N% u
- after Insert( e8 ]7 a% y7 B8 @$ Q% K
- as
! A) r! A+ T* y# A: c/ K - Update [user_account] set
9 [- a* t/ Y3 r! U! s" D* y - [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9# o* K0 A* `# E7 ~& L
- From Inserted
) j8 o& e5 M. Y2 M: w" R4 E - Where [user_account].user_id=inserted.user_id
, V- U! Z3 D W6 t" T - and [user_account].group_id=inserted.group_id- t& J4 O, _) M$ B3 _
- update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9 c1 u" o5 y) B, K
- 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) _
- CREATE TRIGGER [free] ON [dbo].[user_cash]
2 e! Q Q" _0 Z+ v2 W+ } - after Insert
- x" {/ Q7 g/ u9 u5 k - as
8 w9 r; z+ M8 q/ z6 Q/ _, b5 [ - Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
* J) I- h# a2 w - From Inserted 9 }/ E$ ?, l' E
- Where [user_cash].group_id=inserted.group_id
* [* L% j: w& F/ Q& M - 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 @( [- 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
|
|