|
|
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 ( M H' j' G8 O/ c
" x: i2 Y& v# m# S) M- b: n4 b上线送时间/ J% V3 H& o9 g0 E
用查询分析器 必须在billing执行. z9 L: i7 G$ D
- CREATE TRIGGER [free] ON [dbo].[user_account]
7 C- |& |& o- P - after Insert9 H5 }! {+ P/ B% P
- as
; X j" W* {" F9 w - Update [user_account] set
$ m. h+ f( t0 v# x% a% s - [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
& t; C$ w6 t+ L; B1 [) p- x - From Inserted2 h7 F: F4 _" \! l
- Where [user_account].user_id=inserted.user_id m% }+ l( q; R, `% ?
- and [user_account].group_id=inserted.group_id
- U6 }) g3 M- q2 I - update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-92 P' ]8 r5 T% F0 l9 y/ X, j
- where expire_freetime =2006-1-9
复制代码 " B( L; n( E) g) o6 K6 ?1 |
: p ~& X( e2 S上线送商币
& H* _ N& }, x- }, h用查询分析器 必须在 cash' X, B+ U$ G/ ~( N# z3 _
$ ^) [( g0 R- {6 p6 u
- CREATE TRIGGER [free] ON [dbo].[user_cash]
/ G# x2 v9 p) I - after Insert 7 U1 t3 [; H, M$ C& b0 C7 ^
- as ' @( H6 W7 \. N. ~5 f3 k* v
- Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000- H: X' G3 ~! ]8 c0 `) i: C7 ?' a
- From Inserted
& j9 l1 x0 D3 J; d) B - Where [user_cash].group_id=inserted.group_id % S. I, [ Q& p4 Q
- and [user_cash].id=inserted.id
0 H1 R* l1 _" T& x) H
复制代码 % Z7 P# t/ N2 u
6 I2 Q! T$ s; h! q+ R查询GM号
) Y" W1 P. ^- @; ]1 d7 b$ V- selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码 7 C% u" Q8 M, Z1 w& q; a
Y5 x) F, _. I( @+ t; C* m" V1 i& O! x' R# L* A
+ C1 C3 n! g2 \% k5 a |
|