|
|
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 " C2 u3 v9 A! r5 W
' @8 Z( G& d0 E$ w2 {1 r8 b) b上线送时间" |! g% D6 M% w/ q9 L
用查询分析器 必须在billing执行. u" T: V, b! X0 F5 ^7 M5 d
- CREATE TRIGGER [free] ON [dbo].[user_account]% K* W* E' f5 S/ ]# N5 g
- after Insert P/ n1 ^3 e. f, r' w- O% E+ p! r
- as
* h. }9 m3 k2 y8 E4 e3 c - Update [user_account] set
, V+ S2 [4 j' {) N( n9 ]9 R - [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
; l' f+ K# s8 Q4 z - From Inserted1 x' O9 u& ^& Z+ j
- Where [user_account].user_id=inserted.user_id7 C# x3 {, g6 M! G, V$ c# E
- and [user_account].group_id=inserted.group_id! h3 H" N% }; O
- update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-98 v! t7 Z: @: I4 ~9 ?& m
- where expire_freetime =2006-1-9
复制代码
* e% W: _4 K; h1 {4 M
4 o! D/ s, V% x) g上线送商币: j! t: W |3 z" ^
用查询分析器 必须在 cash- M( x+ T+ g& U. V7 |3 Z
4 |3 F$ ?% B- F$ {' m- @- CREATE TRIGGER [free] ON [dbo].[user_cash]
" P" w# D. z$ i - after Insert 0 Y) R, k+ \% Q# N+ j; _% W
- as 6 @9 _; P; j8 M @. L
- Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
) A; ^' j' M/ F- Z; S& | - From Inserted
$ G6 s* w" L, { - Where [user_cash].group_id=inserted.group_id
' K- Y z! k& q4 J" P - and [user_cash].id=inserted.id }/ E$ p: E" d
复制代码 9 Z4 ~" u$ |; v5 J- h/ _# r$ B
* E0 A9 r- M9 L5 c! @ r4 @4 E7 v9 }+ M查询GM号
+ J7 X- Q% g" Q5 y- selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码 S m* \) ~, }/ |1 p5 Y
0 c4 P5 o4 m& I' R6 g& O5 ^- X
6 Z; u- Y4 Z/ G" [5 Q# y: t/ A1 `: q8 {, |9 o5 f
|
|