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

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

[复制链接]

96

主题

3

回帖

1355

积分

超级版主

积分
1355
金钱
228
贡献
1028
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 5 Y. t4 ?" c7 ^3 I# I

5 Z& C6 b2 a+ q, s& ^上线送时间
7 K# [4 m. ]6 @  h! n/ }# t# _用查询分析器 必须在billing执行: T5 t3 e+ w6 P8 r2 U2 Z+ {
  1. CREATE TRIGGER [free] ON [dbo].[user_account]/ o0 Q  i5 c/ b0 E* h
  2. after Insert
    * S6 z% t3 e% M) {! Q
  3. as
    4 \+ f% F4 N* v3 U+ z; m7 J
  4. Update [user_account] set. h0 k0 p5 @' B& x& m! }) ^
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    / D4 t! }" S0 x6 R
  6. From Inserted' N. @. A. I  X0 b  N( x, T# R
  7. Where [user_account].user_id=inserted.user_id( [- K' r6 o# O. W7 U  i% m
  8. and [user_account].group_id=inserted.group_id$ A9 q8 a7 ?: r5 a. ^
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-98 r* g  |5 O& |1 q5 Z' S* z3 q
  10. where expire_freetime =2006-1-9
复制代码
$ x9 t) [' w* T- p# {# e: k

3 `- D' ]- w7 w  {; w上线送商币
( a, p! {  W8 _: q& x0 _" x0 a8 y+ j1 i用查询分析器 必须在 cash9 u8 |/ G2 O$ L6 r1 J

) r( O- ]  |5 e7 \  ]2 p6 @, M
  1. CREATE TRIGGER [free] ON [dbo].[user_cash]   i+ s- d/ G( b) T5 F
  2. after Insert
    # |/ J4 Q" i: v' I6 m7 i1 {
  3. as
    7 Z" p5 C# M: O9 t
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=9000000005 p) B/ W" h7 ]6 I; i; f2 i  e
  5. From Inserted
    1 W& M# P2 d" N( I; W7 A2 G
  6. Where [user_cash].group_id=inserted.group_id ' G! W( Y! \8 H3 B" ?
  7. and [user_cash].id=inserted.id
    % U/ C5 T' d! C8 r6 m8 A1 j. x
复制代码

6 C4 [7 n7 E9 f# I1 U
; b0 r5 y$ c: V, F3 q: }1 s' M查询GM号
' }( N7 a# e) u
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

9 Q% x8 G( z8 _+ H
! \7 L: |0 g; w9 r! O1 s; N; U6 {- L% b
/ c- \& v" ?2 F+ B0 l% P
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-11-12 13:11 , Processed in 0.081821 second(s), 25 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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