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

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

[复制链接]

96

主题

3

回帖

1183

积分

超级版主

积分
1183
金钱
228
贡献
856
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 ; f& @' d% Q( m( o* u; ~- h( V
$ ~7 {2 E% H/ B( {1 w
上线送时间
, Y# E* [/ e( |5 ^用查询分析器 必须在billing执行
$ m2 v; f8 H3 p% [$ B6 Y
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    7 s0 i% {9 a7 N( ~  Z8 l; P2 @
  2. after Insert
    7 C4 k8 Q# ~/ L" p9 F
  3. as
    , T3 L( r3 K. O" k( P3 U
  4. Update [user_account] set# B  W9 t- U; V& x
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9- t) q, Z4 U/ {! `9 u: A8 {/ X
  6. From Inserted% P0 [# ^: r+ G* N8 N: P
  7. Where [user_account].user_id=inserted.user_id. i7 h" }( m6 z6 k  j) R
  8. and [user_account].group_id=inserted.group_id. r  v, ?5 i5 y$ B
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
    & Z, g, J2 h( x4 j
  10. where expire_freetime =2006-1-9
复制代码

* U7 G+ n3 [( Y& ~% I) Y
* r$ l5 W( Y" B. P上线送商币
/ f% I# x3 N8 ?用查询分析器 必须在 cash  t6 s5 N" Q* h3 b+ j
& H( P" T6 t$ v
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] 1 W) \7 g# S5 Y) `# l* K  i
  2. after Insert 6 i, C; E( T! a6 U6 [3 ^* s0 s
  3. as ; E4 n* d! H) }# Y& k& U- D& G9 q
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000. ~# ~3 V6 ]6 d& o" t
  5. From Inserted
    - ]8 [6 A% i8 o$ O5 k
  6. Where [user_cash].group_id=inserted.group_id . Z! j: z' O0 |4 O0 T
  7. and [user_cash].id=inserted.id1 J. p- r5 F8 e5 Z
复制代码
4 _0 \9 `# e/ C1 @- m9 }

  V0 s+ O) g% T5 i" r9 A3 Z% X查询GM号1 k0 L6 L' P3 K' y
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

' ^* I" _1 Y; M0 r- e( [
' g( x" U  H& c/ F( h( t' Y: k5 u! r: W7 ~# }9 ^: a
, S* P. E, g: m! y" o2 y
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-1-1 13:44 , Processed in 0.057029 second(s), 22 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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