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

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

[复制链接]

96

主题

3

回帖

1251

积分

超级版主

积分
1251
金钱
228
贡献
924
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
" U: M. }+ W- x* J9 K* |2 n, m7 k2 |" p. y7 u, o
上线送时间- G: |8 z  z9 U) k+ d- x
用查询分析器 必须在billing执行
* }# X* M" r9 o- Z% @/ D1 J; ]6 _
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    % P9 g0 a5 [6 h
  2. after Insert
    $ Y% g; c5 a1 W# X1 u2 q. r, m+ A
  3. as
    3 ~* Q# x" z( Y- k$ t1 K) Z- c
  4. Update [user_account] set
    # y# B$ u8 p9 t  U, K. [
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9/ R- _1 t, U3 D/ X' k
  6. From Inserted
    % G4 ?/ a; `9 C/ S: h6 x2 P
  7. Where [user_account].user_id=inserted.user_id+ C' i  {" N+ h2 o
  8. and [user_account].group_id=inserted.group_id8 x1 {3 t- \  v8 O" |
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9" a+ {( e8 w( K; M- \( U
  10. where expire_freetime =2006-1-9
复制代码
+ C% K, Z$ a# G5 G5 P( }% l
# x; k1 l8 U. J3 ]  w1 a! @
上线送商币
5 |/ O7 h$ Q9 d* |- m6 u用查询分析器 必须在 cash
+ _' p9 o# D/ c, V: [. k" w+ J) A6 z& O$ Q& w5 c; f
  1. CREATE TRIGGER [free] ON [dbo].[user_cash]
    ' b7 r6 D8 F. W( e* \. p# G" M9 y
  2. after Insert
    & P7 M% I" `' W4 L' d
  3. as " S( R0 P8 t  `; J4 W
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000% u. \0 [5 u8 v& d! D; d3 K
  5. From Inserted
    9 a. q4 x, M( a& D+ V1 l
  6. Where [user_cash].group_id=inserted.group_id 6 n" r! z  L( n
  7. and [user_cash].id=inserted.id
    , u: t: f" ]: E4 e
复制代码

6 I$ r' H1 G4 P, [$ j6 `; q1 N: d! }* n7 b7 I3 x
查询GM号
6 W6 i3 H2 ]9 q7 m4 v' G: C$ Z
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

1 F  P* a: f0 C4 c( F; A5 o5 g% e
/ {) E* _, l7 _9 h" C; Z% x4 `9 |+ T
2 `# H& o! S& h4 w5 {
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-2-8 16:43 , Processed in 0.047118 second(s), 22 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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