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

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

[复制链接]

96

主题

3

回帖

975

积分

超级版主

积分
975
金钱
228
贡献
648
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 1 }; Z4 _6 D/ x+ }

8 H5 M6 \4 Z3 s上线送时间
0 z4 c- R0 U; M, M; b! a. o用查询分析器 必须在billing执行
, ]* K' f& \" ~: m+ M& `
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    4 R" h+ ~! q  M) L6 U
  2. after Insert
    " ?- i0 q: \& U  `6 q
  3. as
    6 y6 V4 d# E3 u' _4 k+ o
  4. Update [user_account] set; S5 n' n$ p; E: ]+ y: r
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9, `( f7 U- u2 h; K" F4 H0 E
  6. From Inserted
    7 q- @, H' }$ S1 C
  7. Where [user_account].user_id=inserted.user_id
    ; Z& E0 U3 {7 ^; D
  8. and [user_account].group_id=inserted.group_id
    + v; T6 k- k# Y5 D7 ~
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
    % K* `' s- g9 d1 t( d" K
  10. where expire_freetime =2006-1-9
复制代码
4 c6 k' v. P7 j: H0 F- s! x
5 E7 y* r6 m3 `! H: J
上线送商币
) `4 Q; O4 P" S! d, i2 b& Z- z用查询分析器 必须在 cash- A# `% R0 W/ Q" u, i
' V$ T& `, _5 N( P+ A( b: @7 V3 o
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] $ H3 p4 y6 L: {" T
  2. after Insert 4 s3 s) R! R) f' u; X4 i$ `: f, C" a
  3. as - @, ~8 G$ N* A$ c
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
    4 k* j% `& z$ R: s2 }" q" r
  5. From Inserted   ]: E* K, h2 Y1 t
  6. Where [user_cash].group_id=inserted.group_id ; z! n7 @2 f8 F% C
  7. and [user_cash].id=inserted.id
    # o4 l0 z. B# b5 S  q) F- t
复制代码
7 ~3 @5 u7 D: `3 d: L2 N- C9 r
* F' ~3 G6 U, w) q7 B4 g5 R) z& P
查询GM号
, e* L8 M9 N' x
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
! V  o* L9 r0 d7 y
8 B. z! j. s2 f
0 z, K. B8 R" L
. z1 M: c; Y- w+ D3 @
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|EGameol

GMT+8, 2025-7-30 21:24 , Processed in 0.042317 second(s), 21 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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