超级版主
- 积分
- 898
- 金钱
- 228
- 贡献
- 571
- 注册时间
- 2023-11-3
|
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 5 G0 F0 G2 _# x- |3 I
) A: ~" d! G! G6 E+ y" Z! Y
上线送时间9 a, i( L8 W) b! `9 f: F; W
用查询分析器 必须在billing执行
" h" B- }$ I: n. W: Q t& p6 t, T- CREATE TRIGGER [free] ON [dbo].[user_account]
$ F. t# b( X! b; B! t" j - after Insert, `! Y0 s9 m# q0 w: i* Y
- as
2 c$ ?) }$ l, c4 A- y2 o - Update [user_account] set
" [6 _' R* V) i1 Y; q - [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
! w U' N+ R: P S4 n9 A1 C - From Inserted
0 y7 d8 j, `+ W( c& X; r - Where [user_account].user_id=inserted.user_id
0 Q4 a" h! R* {4 d& Z- r+ C. o0 O - and [user_account].group_id=inserted.group_id
' c+ f5 R* e8 `; e" c' v - update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9, [5 h% v: X/ K D2 T
- where expire_freetime =2006-1-9
复制代码 ) \% d; J% |; G
8 h4 T( R8 M* b4 z
上线送商币
+ w$ T( K* M8 f( X7 |; w4 s% u用查询分析器 必须在 cash3 _6 G( { _7 f- g9 I5 c0 y, j1 s
9 z9 L) [9 a" R- V) Q# h
- CREATE TRIGGER [free] ON [dbo].[user_cash] $ b: q8 d# @) @! H7 X! V
- after Insert ) c8 |" n# _" f- Q
- as ; e% S' y5 ^* X) [) f! t) m0 @
- Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
; W- B) c! Q7 r# v$ z - From Inserted 7 `, N4 Z& i' T! u/ e
- Where [user_cash].group_id=inserted.group_id * w7 G% j0 F# F+ r# ?+ r
- and [user_cash].id=inserted.id4 H% a) c# @' |0 }2 j0 ~+ m
复制代码
" m0 K! {5 F4 C
N" ^; }9 R: m查询GM号) |( v! T1 V8 `' M- L1 X0 D9 t
- selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
8 I n2 J5 W/ h Q! q$ M( p
0 e0 }5 P% t) f. s. f& \5 ~
. _' T9 r, D/ @4 x: i4 |- n2 m9 k) ~
" T" \! r! u# i) ] |
|