|
|
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
! N* l7 e" f7 g9 C5 A! }- _; z
7 ?/ t, {8 X$ d6 l上线送时间
* ~9 d2 U) k' \# y5 e$ t用查询分析器 必须在billing执行
& j- l4 E9 Z( N7 X1 n! W7 A- CREATE TRIGGER [free] ON [dbo].[user_account]& E3 L1 T) Y; A! O8 ?) t/ x
- after Insert
; A, A" t" T: C - as2 u8 r+ W' f. i d+ u
- Update [user_account] set
9 @% ]1 W3 g. g6 C - [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
; K7 X& p) T, C0 C - From Inserted) }3 M9 B% r& J" e+ G
- Where [user_account].user_id=inserted.user_id
: J& P; G, a8 m2 Q - and [user_account].group_id=inserted.group_id* {: y7 b. m+ j0 o7 O8 z
- update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-96 U3 l0 e F; s' ~
- where expire_freetime =2006-1-9
复制代码
, P% c6 W3 K$ p' V. @
! I7 [; H$ O) P3 z- C9 U3 I上线送商币
3 a3 v! t- `- _0 c用查询分析器 必须在 cash
. v: x$ a: P1 `) F8 q6 V+ A# ?7 R$ W; J' B+ ^( ~ g
- CREATE TRIGGER [free] ON [dbo].[user_cash] - X% i$ R5 @' R7 d0 A' J1 @
- after Insert 4 _/ ]% l# X) Y5 R8 H
- as
$ o# M H0 T, \1 h - Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
6 L0 w$ F' F8 {8 z3 ^% M1 L - From Inserted # b# U, X( p8 f
- Where [user_cash].group_id=inserted.group_id
% @ j. L* {+ z( r Z% Y, | - and [user_cash].id=inserted.id2 n% r4 B U, B. ?4 D
复制代码
+ K4 l. A6 M' j$ Y8 B+ h$ p* U S5 Y. R' S- P7 t% Q
查询GM号
7 l' S4 M$ [' t4 _) w, _& S% \- selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
3 N6 \! j7 Z' Y! D) X
, b) X+ W5 t, S% n
9 h- Q3 F/ |' X3 m( Q. t% }+ C- Z# H# R$ P, G) k
|
|