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

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

[复制链接]

96

主题

3

回帖

922

积分

超级版主

积分
922
金钱
228
贡献
595
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 " }. J! O9 f/ g- U# ~; C. k6 ~9 J2 x
: e3 @: W7 j2 h, Z! q+ [
上线送时间
+ Q( `  j/ T8 g/ j8 }- E2 s用查询分析器 必须在billing执行
* y0 W! n' V4 `( a
  1. CREATE TRIGGER [free] ON [dbo].[user_account]5 J7 N! ?" O' n' c
  2. after Insert
    4 b) O+ B, e3 H& {( V7 ~
  3. as
    / P  O$ u7 b8 q4 b# Q5 _
  4. Update [user_account] set
    . q* A# }  q" c: o8 G* \
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9/ m: j# |$ o9 s& |* I6 {; ]
  6. From Inserted# {( I/ i; L* N! Z- l; u
  7. Where [user_account].user_id=inserted.user_id$ O$ y9 P& W; j# F! Q# ]
  8. and [user_account].group_id=inserted.group_id
      Q. D% L. H* t. D
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-99 W8 n: l% a% L5 I6 I
  10. where expire_freetime =2006-1-9
复制代码
' y! n' i6 e0 `8 v/ m0 J
  z* `; V% _. |: s/ \3 |( o( H$ b8 X+ ~
上线送商币
5 b4 F, Y1 u- h3 Y+ G$ P用查询分析器 必须在 cash
) @: w: U# x# ~
0 ?: I& O8 G$ {) ^* t5 G4 O: W
  1. CREATE TRIGGER [free] ON [dbo].[user_cash]
      m. j! G# K8 C% P
  2. after Insert % c' {' F! `2 P; }# I' e6 j4 q
  3. as 4 z; N7 \; ]6 V2 _5 l  r
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000' d8 Z& h1 ?; z- ?
  5. From Inserted ' g- c) J, U+ s3 p
  6. Where [user_cash].group_id=inserted.group_id 4 z0 O5 F( Y! t$ I7 W& {+ ^
  7. and [user_cash].id=inserted.id/ u) D) W8 L8 r  w& `8 A
复制代码

+ C1 [+ F- q  H9 {3 d- L: E7 v0 X& |  N$ Q, R2 u1 Y3 f
查询GM号
# G% Q% u& j) a3 R* A0 I3 v6 G
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

- _3 o$ y( J7 d5 a3 u; Y$ F3 X8 G2 Y  b* T

- n7 P& B2 p. L; u
& N+ f( ]- e& R% d" A
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|EGameol

GMT+8, 2025-6-9 04:24 , Processed in 0.036200 second(s), 21 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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