|
|
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
* p, g: @9 `. j1 p* n# o2 i5 i" [7 j [0 K
上线送时间+ D5 G7 a' k; [' m$ e) ~0 O7 {
用查询分析器 必须在billing执行* C; |. h) V1 ?( `. Q" ^2 d7 I5 T; |
- CREATE TRIGGER [free] ON [dbo].[user_account]
% W2 J6 ? ~( I* M8 j7 L' W - after Insert: }8 P, t+ m3 k
- as8 ~, D( [: R2 U! i& U4 k3 ^
- Update [user_account] set
9 c# ?$ m. J7 l' F; } - [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
5 Y4 p" y) f, F; t7 O3 I - From Inserted
) Y* N: [0 e# `! K0 f2 r - Where [user_account].user_id=inserted.user_id; y7 ?& {: D: ]5 S: S& M) n Z" X
- and [user_account].group_id=inserted.group_id4 P: r" H8 ?$ v5 }( X
- update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9, H. X) L5 Z& \% X0 i4 w
- where expire_freetime =2006-1-9
复制代码
G% @% B$ ~! Y9 k: P1 C# E) n7 X* c% [% J; j6 M; z
上线送商币
, W( v) D7 X( ~5 Y2 r用查询分析器 必须在 cash
0 h: l4 [) D2 B) s1 m' X" J- |9 ?- [1 _" a* ?, o0 `4 J
- CREATE TRIGGER [free] ON [dbo].[user_cash]
+ W; t$ r& N& r' V - after Insert
( E, U5 u+ h# k7 ^ - as , ^% p5 o& x2 E$ q8 d4 i; c$ ~
- Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
4 m' \* ~6 y) F: a% i7 L9 t1 y - From Inserted ( D5 V& U, R1 U4 n, A
- Where [user_cash].group_id=inserted.group_id & i0 ? G! @6 [/ F9 Q9 y$ W
- and [user_cash].id=inserted.id
& O: r: n& Z% [( G
复制代码
* q Q3 t2 i% G. f$ I& O+ s8 u% g( V9 W/ ~; j2 M" @2 D
查询GM号* `- ~7 ~- }$ e0 Y* E+ P
- selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码 ' C" \& v! X/ D4 Q A `. |% r: ~
8 O) p# t9 I% n- s( a! e7 c U' C& w8 y: [
" i8 b2 E, }" e+ @" X0 W8 B! E
|
|