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

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

[复制链接]

96

主题

3

回帖

902

积分

超级版主

积分
902
金钱
228
贡献
575
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 : ?' A( m/ a- q, C2 T, K

2 k2 C. e% B9 \( Y7 E+ h上线送时间
, y0 [, J5 C) j8 r用查询分析器 必须在billing执行
5 o0 u6 i# Z7 I1 ~8 y& H
  1. CREATE TRIGGER [free] ON [dbo].[user_account]0 x- V& F. z: K
  2. after Insert
    * C8 k, [. Y2 b" k- x+ ^0 q2 Z
  3. as
    " ^2 }; A  g/ K0 n! p& ^5 l$ u, Z
  4. Update [user_account] set
    # _; z/ i3 {  |8 ]. p  N
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9' p4 C! K$ {6 K  m
  6. From Inserted
    9 m' n4 a0 G, P8 ^7 S  @/ R. D
  7. Where [user_account].user_id=inserted.user_id9 A! Q" }* F2 t. C
  8. and [user_account].group_id=inserted.group_id/ e( i5 J" a# Q2 ]! @# y! q7 r
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
    & l  s5 G7 ]0 ^) A" ?
  10. where expire_freetime =2006-1-9
复制代码
4 d' ^; \) C: [* q: U
; O% L' _7 N% W& x% A
上线送商币
3 E2 h2 G  J% V9 p1 [用查询分析器 必须在 cash( C" {+ @: `" X! x6 u
4 N" l. \4 e0 g0 d
  1. CREATE TRIGGER [free] ON [dbo].[user_cash]
    7 b6 I% V+ p* ^! Q2 s
  2. after Insert
    ' j$ O# H# K8 b# {1 H1 R6 A
  3. as ( o6 B' G& X5 s& K: S+ l
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
    ) {% H  E: u7 |- C
  5. From Inserted : F/ H* i; c) R, o# Z9 [" S! g7 X: Y
  6. Where [user_cash].group_id=inserted.group_id
    : N# a9 ?4 g8 I5 i" G/ S9 j  P
  7. and [user_cash].id=inserted.id( C$ v; [+ x: }. ?* n, m8 b6 Z
复制代码

8 I( L6 G. L4 F% h0 a7 L5 F
. G5 P, D- A& p查询GM号. J; J5 K, h0 M
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

( M$ P  c' s- y+ B4 `) M. c. }/ X4 P" G: g
2 n9 d1 ~9 Z4 {" K/ E" `# U  a

: r& {9 p' |$ Z/ m% L6 f- Y
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|EGameol

GMT+8, 2025-4-9 02:07 , Processed in 0.028372 second(s), 20 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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