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

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

[复制链接]

96

主题

3

回帖

1323

积分

超级版主

积分
1323
金钱
228
贡献
996
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 # G" x6 _4 E/ }8 y" L" y$ X9 J  }

3 P- @9 G6 g0 \( z7 Q) N上线送时间: A1 p' Y3 l4 R# p2 E* l
用查询分析器 必须在billing执行
7 ^) H8 B0 W' O% ?
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    : l( K7 u) `$ C' q* h8 x
  2. after Insert
    6 M8 [+ X: V- T6 K# T4 _0 ~; ^4 p2 D
  3. as
    : p4 E2 G* g3 u6 F3 e5 L
  4. Update [user_account] set/ d0 @8 r* R  H. p: l- V9 z6 Y7 d
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    8 d* u; Z& s4 m
  6. From Inserted
    7 S- o2 H. ?; \5 D; k8 h( U
  7. Where [user_account].user_id=inserted.user_id( X0 d. m+ [  S. l& h2 f, V. S
  8. and [user_account].group_id=inserted.group_id! q% ]9 G6 ?8 \1 T8 M* ]
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-99 P8 `7 _- h9 t0 n1 C
  10. where expire_freetime =2006-1-9
复制代码

+ |4 y# |5 u' N/ p. ^+ n4 N/ h) Z9 T. N" I" L# b
上线送商币7 R8 r* C  q# V1 n1 _1 I
用查询分析器 必须在 cash
+ y* k5 `8 O2 F0 i& G/ c# V- T0 ?
9 a4 K! w: Q3 w* b% Z9 j7 |) r& t
  1. CREATE TRIGGER [free] ON [dbo].[user_cash]
    3 M) u# v# k: n  k, ?( x) e
  2. after Insert 4 V, U+ b* s& d" T6 R& Z1 c
  3. as 1 T, M  m0 W6 B( o2 @
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000  o. U8 V  i$ u8 e; R
  5. From Inserted
    8 v5 ~8 {" P) C
  6. Where [user_cash].group_id=inserted.group_id $ r% A. @# O6 G/ {4 O- P3 H  [
  7. and [user_cash].id=inserted.id
    / o; a5 D+ g4 j
复制代码

: l& t, N1 h$ T3 |* D
4 I* ]! [* U. p0 Z( h' r查询GM号# V% a0 k' d: u. Z( j& F3 ]# Z
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

, A) w& F" L" k  Q' s; U* B& y# ~. \5 `

, N5 O0 |+ r: ?* H
/ d; i1 j% s& F! ~! z
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-5-18 13:43 , Processed in 0.029888 second(s), 23 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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