|
|
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 8 Q) ^6 u [- E, {5 n6 Q" r8 u2 P
0 s, J3 Q( j; D- G2 z# ^1 t上线送时间
, {& z; g6 R$ b7 z5 T! t2 t) m! v3 c用查询分析器 必须在billing执行* |5 P( ~& O4 E V6 l8 v% q/ r
- CREATE TRIGGER [free] ON [dbo].[user_account], O! W+ X" l8 R! F
- after Insert
( X3 H8 E8 U9 J O; ~ - as7 b2 M8 ?9 I( |$ N5 T
- Update [user_account] set( p! Z$ r; N1 N _7 _! ^
- [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
+ s' p0 z2 D" ~/ L1 S1 o - From Inserted1 t. [3 p5 |3 k% k& l
- Where [user_account].user_id=inserted.user_id; Z/ F6 _ A5 S+ t2 B
- and [user_account].group_id=inserted.group_id( R7 n2 ]* P# P6 O. r
- update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9. D* v$ l+ X ~4 o6 b
- where expire_freetime =2006-1-9
复制代码
* {' c$ a4 E( s) t* ^- m
9 C8 h+ I+ F$ Y4 h% n) H上线送商币4 q" D$ Y! ]( N! i0 s$ {. U
用查询分析器 必须在 cash1 s! }8 P4 m9 i$ v
: ^% M( y/ S6 t& H
- CREATE TRIGGER [free] ON [dbo].[user_cash] 3 h0 X. K; S* o/ C5 E$ k9 i$ U8 ^
- after Insert
9 q. @9 F/ F, K( L) H - as 5 d- B* F% x+ m" }# q S& W! C
- Update [user_cash] set [user_cash].amount=900000000,free_amount=9000000009 @7 R( X3 P m
- From Inserted
, P9 m' t s N - Where [user_cash].group_id=inserted.group_id
8 V' A8 p9 P& m6 n' d# Y - and [user_cash].id=inserted.id
! C, {7 z: E/ g; I& I$ ~
复制代码 ; H2 I6 I( `: Y% m+ ?/ [5 x
0 Z- ] @" B/ S1 w7 w
查询GM号% Y' l2 e% o+ ?/ g
- selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码 1 L, A/ O/ q1 }) ?6 O: H" I
; M& R* Y+ n6 U4 g% n
# P+ B# j8 c' f+ j- ? M
- N* b/ D+ @( V5 x |
|