|
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
# w. d0 Y) ^1 j4 l& M3 M: z' T3 n' x2 [5 N) j
上线送时间
4 q$ v$ k! h R/ `用查询分析器 必须在billing执行/ z' D6 J M7 B7 S5 t- c6 {
- CREATE TRIGGER [free] ON [dbo].[user_account] E. G: {/ i" R
- after Insert) @: r- K1 u6 _4 \; j L
- as x. G1 e# e( L* A% O
- Update [user_account] set' I* z& ?, f2 I. e/ n+ C% K
- [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
' @0 @! R+ j- Y; H - From Inserted$ s j, d$ m: f8 `0 D) K
- Where [user_account].user_id=inserted.user_id
/ i3 S1 _( N& e1 g8 v% n. h' r0 x - and [user_account].group_id=inserted.group_id/ P4 L4 y3 d# W4 }
- update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9% G. L" r; }$ B8 U: T
- where expire_freetime =2006-1-9
复制代码
* |: S% x; r" q' @# `) c
( V8 }9 C ]# {/ j上线送商币3 T) l4 \0 W. \* C0 N, d0 V
用查询分析器 必须在 cash
$ y* {. D! u7 J
0 T- J, \) i& Q/ _2 Z% G$ A5 P- CREATE TRIGGER [free] ON [dbo].[user_cash] + |4 ?2 s; a8 n5 ~5 ?
- after Insert 4 A% }# }) Z3 Q' f; ?; Z T
- as
4 x. u9 Q( _0 c - Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
( k; ^/ }& w0 t$ D) z - From Inserted
- S# I: ]- D/ w) W5 g- y1 M - Where [user_cash].group_id=inserted.group_id
9 H$ Q3 |" x4 S' B - and [user_cash].id=inserted.id
, s) D+ e }5 X! Q
复制代码
# X2 j H2 Y. u) D
1 W# I3 {- ^; Y% s查询GM号2 v- B4 Q9 x @+ X# e% E4 P3 f
- selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码 5 B+ k1 O1 {2 E7 T, j
- A$ {( }- p+ e$ Z( A8 i
) {0 h* Q$ U$ H! M' B; E
: P' A# r% h$ h" x" `+ } |
|