超级版主
- 积分
- 738
- 金钱
- 228
- 贡献
- 411
- 注册时间
- 2023-11-3
|
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
! H. E3 D9 v2 i, ]+ G1 Y& v3 z( U- D" g' W, w$ P6 O) `! D
上线送时间# g3 @: M/ r& U6 p- `# y
用查询分析器 必须在billing执行
# h2 C5 ~+ @# l- CREATE TRIGGER [free] ON [dbo].[user_account]1 L* K$ X$ ~. N: @0 c. s; \! `3 Q
- after Insert4 x; j7 ]/ p3 } [2 i
- as
) ^1 |: Q0 ]5 P7 b$ z - Update [user_account] set
0 q6 F6 g0 x" n3 }2 o - [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
3 {1 q% h" n1 d3 m/ M2 X - From Inserted
1 J# ?# a! K% }/ M8 M - Where [user_account].user_id=inserted.user_id
3 y& \. B6 ?; `$ g3 l) g - and [user_account].group_id=inserted.group_id
* E, u6 L1 e0 U! d8 d+ A: W" i0 C - update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
$ Z8 e5 j$ B, R" p/ G - where expire_freetime =2006-1-9
复制代码 ( q, X# n2 P1 [1 `, D y, J! B
' t( T: u( u( N6 k$ P/ r" ]上线送商币
; v# A8 v3 k0 {4 e用查询分析器 必须在 cash
6 I% p. v& @5 Z# w, D' f2 j/ G9 a& S) J1 n
- CREATE TRIGGER [free] ON [dbo].[user_cash]
. A) z* I7 z; V4 J - after Insert
' J$ Y0 P, e5 \1 U - as
5 U5 i- R3 d6 [7 A% @ - Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
* ?3 ~4 O- v, q; A7 d9 E# z - From Inserted
6 } n" y4 C z$ E! X. u ], V - Where [user_cash].group_id=inserted.group_id + T; y: K1 R' L% Y2 _, {
- and [user_cash].id=inserted.id
3 d- q8 L K9 I+ F7 u! ?7 Q
复制代码 / d8 d: H4 E F m8 X( v0 H
5 J- l X+ m4 @查询GM号* p0 R6 g$ o# c7 R; J
- selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
1 B. n/ x$ P9 V' s, Q+ T4 G9 D2 d' R; S4 x* `. K% I( {
4 X- [0 ^- c% |' d9 P& u5 s: X: J4 s0 }1 J0 u6 J
|
|