超级版主
- 积分
- 684
- 金钱
- 224
- 贡献
- 361
- 注册时间
- 2023-11-3
|
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
% c# @5 e- s. p
) ?9 G9 z" [: r, D上线送时间
4 Y$ }# Q" m$ H! k) ~* C+ b u# I( H用查询分析器 必须在billing执行- ^* |) \, m& ~/ I. f+ a2 I
- CREATE TRIGGER [free] ON [dbo].[user_account]
8 T( u l: X) W) ~& w Q3 O6 u - after Insert: P# m# o& t; ~2 n
- as$ \* h9 o( ^; F# o6 t
- Update [user_account] set$ Z' A- [- ~; @( A( H2 `
- [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9" F7 `+ n' u: Z. T, o
- From Inserted
! Z) n E+ u3 v8 D- o9 u - Where [user_account].user_id=inserted.user_id; j4 W( s% I0 X# O' K( O
- and [user_account].group_id=inserted.group_id! f' h7 ?! q$ b# H, d1 j
- update user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
0 B; \& L- p6 Q- H% N6 f - where expire_freetime =2006-1-9
复制代码
4 J' U8 ]' S! t! q5 ~. x- L, i# S
上线送商币
& g$ A9 m Q; a9 t: a" h8 K用查询分析器 必须在 cash
9 W0 w7 b. Y0 H# J2 @# o& g: h* {; }: J, @' D
- CREATE TRIGGER [free] ON [dbo].[user_cash]
* C0 _. v7 X% E2 y3 O: G0 Q+ k - after Insert 4 Z. Y3 r0 u9 b0 O+ N3 h. {. {
- as ) F! @! F3 M4 L
- Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
9 }1 w2 L3 c# F( }0 F6 c - From Inserted
- [6 @% ^+ b3 B - Where [user_cash].group_id=inserted.group_id
$ [2 R3 r5 I, q' s1 ]4 L8 @ - and [user_cash].id=inserted.id
& I6 @' |- P/ f; P; R5 k- Y
复制代码
& S( k$ t5 i8 S# T2 N+ r: h7 k$ Y7 \8 H7 R+ ?" T' X) C
查询GM号
% u) A- K# Y) N: e; u- selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
. q4 A1 |5 v. s1 `4 }5 j* O/ h5 W3 c6 U4 C6 q. z
- ^5 {5 E( W# Y" n4 ^+ L% ~% f/ T) w+ ?. b( @
|
|