超级版主
- 积分
- 738
- 金钱
- 228
- 贡献
- 411
- 注册时间
- 2023-11-3
|
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 1 V/ R9 F; e6 R n
; f9 {. |4 U/ g, h上线送时间
8 y; z. o z8 o5 a4 ^, s2 u9 Y用查询分析器 必须在billing执行
1 l R; }, [- u, h2 C- CREATE TRIGGER [free] ON [dbo].[user_account]" R, m. T4 J3 O3 t
- after Insert
1 i5 u5 u4 P6 F r7 z - as* F* A+ i' @' B# d1 }6 d6 w' U
- Update [user_account] set6 L. y" f8 K) f+ ]$ Q7 N
- [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9. w8 d% y9 q/ }# `
- From Inserted
9 Q$ I$ ~9 {+ K9 P4 D6 ^* q9 C. m - Where [user_account].user_id=inserted.user_id
: r" x9 c7 |- x2 x$ p1 q1 u' a - and [user_account].group_id=inserted.group_id4 M& A- t( z. M
- update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
6 B9 {' Y; w$ d t - where expire_freetime =2006-1-9
复制代码
+ h$ c) O2 c& L" a/ W+ E6 q
- C; {( [" u% ^上线送商币
* _4 M% N+ T, d0 E. ]- N1 [用查询分析器 必须在 cash
( x5 j, _6 I/ Y. I F ?5 _. d# o" F1 k
- CREATE TRIGGER [free] ON [dbo].[user_cash]
5 `8 K1 y ?% C F! W# E* H - after Insert 7 z7 N0 B7 E! @. g
- as , n" l, |7 o6 |" J5 N% |+ v n
- Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
4 g. ]( ~8 u5 k4 | - From Inserted
% C- r7 x" e" ?8 N( n5 a5 C - Where [user_cash].group_id=inserted.group_id % E( N2 S' t+ z2 g# a/ d! J8 L
- and [user_cash].id=inserted.id( g2 f# a/ I0 M
复制代码 h n) e0 L/ ~
$ t0 L9 K. I; P8 \# t
查询GM号
: `( F" V3 C3 S; z( y! ^- selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码 ) J& W, U, `0 X4 ]
, E3 `! X/ Q& J0 t3 A" g
1 y) ], J' D1 |8 m) E
; j+ ?1 h$ G8 U7 T( \- C3 { |
|