找回密码
 立即注册
查看: 5570|回复: 0

[技术文章] 挑战上线自动送点卡.商城币.和查询GM号SQL执行语句

[复制链接]

96

主题

3

回帖

1347

积分

超级版主

积分
1347
金钱
228
贡献
1020
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
* p, g: @9 `. j1 p* n# o2 i5 i" [7 j  [0 K
上线送时间+ D5 G7 a' k; [' m$ e) ~0 O7 {
用查询分析器 必须在billing执行* C; |. h) V1 ?( `. Q" ^2 d7 I5 T; |
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    % W2 J6 ?  ~( I* M8 j7 L' W
  2. after Insert: }8 P, t+ m3 k
  3. as8 ~, D( [: R2 U! i& U4 k3 ^
  4. Update [user_account] set
    9 c# ?$ m. J7 l' F; }
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    5 Y4 p" y) f, F; t7 O3 I
  6. From Inserted
    ) Y* N: [0 e# `! K0 f2 r
  7. Where [user_account].user_id=inserted.user_id; y7 ?& {: D: ]5 S: S& M) n  Z" X
  8. and [user_account].group_id=inserted.group_id4 P: r" H8 ?$ v5 }( X
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9, H. X) L5 Z& \% X0 i4 w
  10. where expire_freetime =2006-1-9
复制代码

  G% @% B$ ~! Y9 k: P1 C# E) n7 X* c% [% J; j6 M; z
上线送商币
, W( v) D7 X( ~5 Y2 r用查询分析器 必须在 cash
0 h: l4 [) D2 B) s1 m' X" J- |9 ?- [1 _" a* ?, o0 `4 J
  1. CREATE TRIGGER [free] ON [dbo].[user_cash]
    + W; t$ r& N& r' V
  2. after Insert
    ( E, U5 u+ h# k7 ^
  3. as , ^% p5 o& x2 E$ q8 d4 i; c$ ~
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
    4 m' \* ~6 y) F: a% i7 L9 t1 y
  5. From Inserted ( D5 V& U, R1 U4 n, A
  6. Where [user_cash].group_id=inserted.group_id & i0 ?  G! @6 [/ F9 Q9 y$ W
  7. and [user_cash].id=inserted.id
    & O: r: n& Z% [( G
复制代码

* q  Q3 t2 i% G. f$ I& O+ s8 u% g( V9 W/ ~; j2 M" @2 D
查询GM号* `- ~7 ~- }$ e0 Y* E+ P
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
' C" \& v! X/ D4 Q  A  `. |% r: ~

8 O) p# t9 I% n- s( a! e7 c  U' C& w8 y: [
" i8 b2 E, }" e+ @" X0 W8 B! E
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-8-30 11:03 , Processed in 0.048680 second(s), 25 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表