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

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

[复制链接]

96

主题

3

回帖

1183

积分

超级版主

积分
1183
金钱
228
贡献
856
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
( m) S% @# a/ Y. p& y
- ?7 J' E. G& ?, L上线送时间
; C" J5 X$ D* {: y+ F* p. h用查询分析器 必须在billing执行
0 Z' d1 h& l7 d; c# M4 K- Y
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    " [" S( D- _$ \3 Z' y
  2. after Insert
    6 n3 U+ q' o5 K  U' }7 p
  3. as, s3 ?7 q! c9 Q% B! J" `+ D
  4. Update [user_account] set" t* q) ~8 t7 d' e6 v. C+ V$ A
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9& b& C: R: \9 D" n- T
  6. From Inserted
    & B$ x' T, j& C- M
  7. Where [user_account].user_id=inserted.user_id
    ' @7 g8 Z+ r4 j5 Q4 E# H
  8. and [user_account].group_id=inserted.group_id
    " V# K0 @% H7 g! H' S
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9, q: H% k0 F" O$ R  B$ W
  10. where expire_freetime =2006-1-9
复制代码
7 E9 g$ n" B- q1 X5 y+ [6 f

7 a2 O5 O& |4 f上线送商币, x/ }2 l4 _, o- g7 E( @( _
用查询分析器 必须在 cash' x3 u! u  Z5 ^) _: t. d

1 U- z; W, _, `9 g
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] + j" K" {$ J; H4 {
  2. after Insert - L# {. Q: U& d! F9 g
  3. as - N* z9 s) h. k* L& i
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=9000000003 n# O2 z8 d4 {$ ^
  5. From Inserted 4 _; \; z5 a0 k2 l
  6. Where [user_cash].group_id=inserted.group_id ) `" U0 @0 O" f) d
  7. and [user_cash].id=inserted.id
    # D4 e2 Y  J& Y" J  \
复制代码

8 A6 E* |% s( f+ F6 c, c3 O1 P: ^/ Z" m: L9 A2 L# Q( \( F
查询GM号7 `3 {! w' |, g
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

- B6 g; L4 ~8 Z' I& r# ^' L- j0 X" K3 k  r

  f( l1 A. r4 K+ M2 w, z1 g( R, h" X+ f( o9 K8 o. g3 W: W
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-1-1 23:56 , Processed in 0.331851 second(s), 21 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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