|
|
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
/ \% h2 {1 V# b" T" z
8 z7 W% F+ f- ^0 l上线送时间) b0 m2 w: s3 I- `7 u
用查询分析器 必须在billing执行, K- j# \5 n: C" K
- CREATE TRIGGER [free] ON [dbo].[user_account]
: ^$ G1 H& I+ J. W) L - after Insert
: g" e* N4 w+ ^% y+ ~8 P" E8 P - as
: h% [3 p9 d3 r% j) o% O& u: r - Update [user_account] set) g' N; v& J. \" |' d1 k$ q" [
- [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9# W z( y- f( u$ h5 l$ T
- From Inserted" E4 U! [9 s+ _+ b+ Y4 H
- Where [user_account].user_id=inserted.user_id& ] E8 X4 E& U2 R
- and [user_account].group_id=inserted.group_id, B! v* P/ ^; |6 X! b
- update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
; _$ M" s2 \( B K) R. { - where expire_freetime =2006-1-9
复制代码 F h0 @2 k0 \. q, `
8 q/ s" m5 p6 |7 T: t上线送商币
2 K! t; @; p( N4 z4 L用查询分析器 必须在 cash
+ L* l d" b$ l1 E u" d
& A. }' w, m8 m+ n5 i! u; M- CREATE TRIGGER [free] ON [dbo].[user_cash] * Y, w7 N5 ^5 E& c! g4 a
- after Insert
! H- L' M8 Q* J. p F - as * ?9 m. O1 ~# L' C
- Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000; d5 }+ `5 O" T- n q: b
- From Inserted
# y `2 z( O2 g8 B' x6 l - Where [user_cash].group_id=inserted.group_id - a3 _' `. y( b& g& _
- and [user_cash].id=inserted.id
- b$ N" S/ }( q" J& O
复制代码 * p1 \4 Y+ [, U8 Y4 D; t% p
+ u0 s1 c* `1 Z& k查询GM号5 N0 ?2 r7 {8 c+ u
- selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
5 U( a8 o1 r) q& w' V* q& X
r' z) S G6 U' T" [1 y7 } ]
: V7 W/ w- O+ w% a8 ?0 O# U o# m: m5 P, e% i) D2 T5 X
|
|