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

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

[复制链接]

96

主题

3

回帖

1007

积分

超级版主

积分
1007
金钱
228
贡献
680
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 : x( u; s! B- I' {' @

9 ^* Z$ }/ s) W上线送时间
3 U1 p2 d9 T9 a; A8 ~6 [1 t用查询分析器 必须在billing执行
, |+ [7 R5 b% Q
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    0 s4 l' Y& R( r( u$ @+ c/ D( e2 w& B, u7 z
  2. after Insert1 h& ^8 A* D+ s# k1 }+ R. U
  3. as
    1 B( u7 p$ f0 T5 C/ E
  4. Update [user_account] set
    + [# f9 }! `) T$ s3 s/ p
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9) n3 j, A4 P! x. h
  6. From Inserted/ }4 a# i1 z( a% Z# `
  7. Where [user_account].user_id=inserted.user_id
      O4 P1 J  }0 w* M' O% H" o
  8. and [user_account].group_id=inserted.group_id
    0 k/ W1 h1 O* Y7 X  O4 _2 }
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9- y: n5 l& k) b( ?* W  e
  10. where expire_freetime =2006-1-9
复制代码
1 Q+ o9 O  G  m5 I% M' P+ G' f) c

& q, I' V) E3 }上线送商币* `9 Q' k3 S( n; q3 j" E
用查询分析器 必须在 cash5 Z0 z1 [- C1 H) b# b. G

$ H- X! l. R8 v' T1 E/ A
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] 8 Q! t* M8 Q( l  R* ?0 e
  2. after Insert * j- \! y! l, `2 U! q
  3. as
    " M8 W0 u' Z0 r# Y/ C( |
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
    9 ^" d3 Q" e' U5 Y3 V
  5. From Inserted ( B  H; ^- |9 M% Z& x  S
  6. Where [user_cash].group_id=inserted.group_id / w4 n  i8 Y' X2 `8 e; s
  7. and [user_cash].id=inserted.id4 |$ s/ w. U0 d+ }- r: X" Q" {- |8 L
复制代码

+ x1 t8 D! U7 }$ P9 S
! A! s1 {* b3 r- Q查询GM号
3 o' d( C. i* m! ~% t/ X
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

9 ~% d% ?) ^7 q6 y
9 S# W6 t2 @0 y+ F/ }* O+ Y8 ?5 g* ~( e, R  s2 |$ }& j
+ H% ?) Y$ D) i+ H
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2025-9-19 22:17 , Processed in 0.041442 second(s), 22 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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