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

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

[复制链接]

96

主题

3

回帖

1039

积分

超级版主

积分
1039
金钱
228
贡献
712
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
# w. d0 Y) ^1 j4 l& M3 M: z' T3 n' x2 [5 N) j
上线送时间
4 q$ v$ k! h  R/ `用查询分析器 必须在billing执行/ z' D6 J  M7 B7 S5 t- c6 {
  1. CREATE TRIGGER [free] ON [dbo].[user_account]  E. G: {/ i" R
  2. after Insert) @: r- K1 u6 _4 \; j  L
  3. as  x. G1 e# e( L* A% O
  4. Update [user_account] set' I* z& ?, f2 I. e/ n+ C% K
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    ' @0 @! R+ j- Y; H
  6. From Inserted$ s  j, d$ m: f8 `0 D) K
  7. Where [user_account].user_id=inserted.user_id
    / i3 S1 _( N& e1 g8 v% n. h' r0 x
  8. and [user_account].group_id=inserted.group_id/ P4 L4 y3 d# W4 }
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9% G. L" r; }$ B8 U: T
  10. where expire_freetime =2006-1-9
复制代码

* |: S% x; r" q' @# `) c
( V8 }9 C  ]# {/ j上线送商币3 T) l4 \0 W. \* C0 N, d0 V
用查询分析器 必须在 cash
$ y* {. D! u7 J
0 T- J, \) i& Q/ _2 Z% G$ A5 P
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] + |4 ?2 s; a8 n5 ~5 ?
  2. after Insert 4 A% }# }) Z3 Q' f; ?; Z  T
  3. as
    4 x. u9 Q( _0 c
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
    ( k; ^/ }& w0 t$ D) z
  5. From Inserted
    - S# I: ]- D/ w) W5 g- y1 M
  6. Where [user_cash].group_id=inserted.group_id
    9 H$ Q3 |" x4 S' B
  7. and [user_cash].id=inserted.id
    , s) D+ e  }5 X! Q
复制代码

# X2 j  H2 Y. u) D
1 W# I3 {- ^; Y% s查询GM号2 v- B4 Q9 x  @+ X# e% E4 P3 f
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
5 B+ k1 O1 {2 E7 T, j
- A$ {( }- p+ e$ Z( A8 i

) {0 h* Q$ U$ H! M' B; E
: P' A# r% h$ h" x" `+ }
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2025-10-10 12:28 , Processed in 0.074663 second(s), 21 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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