|
|
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 & A2 Q- t K) Y% v6 u( S
n V. T$ h; T5 v, D上线送时间
: A* U/ C5 s" B% s/ b4 ~. h* M用查询分析器 必须在billing执行
# F+ @, J/ }. p% N9 e0 t/ p- CREATE TRIGGER [free] ON [dbo].[user_account]3 B0 F" o7 B* V) H
- after Insert/ p2 A6 ^1 g& P% p- a3 _0 m4 Q0 b
- as
8 O/ Z6 ]) h3 S - Update [user_account] set; \ ~% b' S1 e! \; Z. T, ]! p
- [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-96 n4 [0 [; W H* E/ C3 z& R
- From Inserted( w3 b4 Y# N5 r* \
- Where [user_account].user_id=inserted.user_id) A# d3 ?8 j* U; {( V5 d
- and [user_account].group_id=inserted.group_id/ I$ ^& k- g9 H4 @8 r* _
- update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
4 t3 q" T/ T; w5 h - where expire_freetime =2006-1-9
复制代码 ' S+ s C9 ~: E; V* L
3 R4 @* L% q" a. c9 V+ I1 m, l! C: f上线送商币6 n5 p" R& Q0 A/ c5 F2 y4 B
用查询分析器 必须在 cash
" F+ ]* F/ e }' _. y- v8 `4 v6 y3 c; w& R* j1 \1 e
- CREATE TRIGGER [free] ON [dbo].[user_cash]
& n: v3 K3 i$ { - after Insert
3 q5 }9 i$ J: ~5 w - as
6 v% [; W8 d; C% d! W* m - Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
' w. W. s9 m5 U$ K* F - From Inserted
c8 R! f% I) Z2 |* J% z6 V/ R4 J - Where [user_cash].group_id=inserted.group_id 1 q( `. {- e$ n/ d0 B6 `4 U, K5 D# A
- and [user_cash].id=inserted.id9 ]4 k4 v- a3 X1 g2 Y8 q
复制代码
a* Q: D7 u, ]+ E4 w; _
+ R; S6 R9 e, \! y$ [/ w( `查询GM号' `& ]8 Z D% V! R9 y8 A
- selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码 8 H) Y: n9 ?2 t! c' h
9 v% p( G b& \& A3 I5 k! H, @
, i6 j% z6 W' g3 J
# m. B& G2 r3 ?- K
|
|