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

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

[复制链接]

96

主题

3

回帖

1291

积分

超级版主

积分
1291
金钱
228
贡献
964
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
! N* l7 e" f7 g9 C5 A! }- _; z
7 ?/ t, {8 X$ d6 l上线送时间
* ~9 d2 U) k' \# y5 e$ t用查询分析器 必须在billing执行
& j- l4 E9 Z( N7 X1 n! W7 A
  1. CREATE TRIGGER [free] ON [dbo].[user_account]& E3 L1 T) Y; A! O8 ?) t/ x
  2. after Insert
    ; A, A" t" T: C
  3. as2 u8 r+ W' f. i  d+ u
  4. Update [user_account] set
    9 @% ]1 W3 g. g6 C
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    ; K7 X& p) T, C0 C
  6. From Inserted) }3 M9 B% r& J" e+ G
  7. Where [user_account].user_id=inserted.user_id
    : J& P; G, a8 m2 Q
  8. and [user_account].group_id=inserted.group_id* {: y7 b. m+ j0 o7 O8 z
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-96 U3 l0 e  F; s' ~
  10. where expire_freetime =2006-1-9
复制代码

, P% c6 W3 K$ p' V. @
! I7 [; H$ O) P3 z- C9 U3 I上线送商币
3 a3 v! t- `- _0 c用查询分析器 必须在 cash
. v: x$ a: P1 `) F8 q6 V+ A# ?7 R$ W; J' B+ ^( ~  g
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] - X% i$ R5 @' R7 d0 A' J1 @
  2. after Insert 4 _/ ]% l# X) Y5 R8 H
  3. as
    $ o# M  H0 T, \1 h
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
    6 L0 w$ F' F8 {8 z3 ^% M1 L
  5. From Inserted # b# U, X( p8 f
  6. Where [user_cash].group_id=inserted.group_id
    % @  j. L* {+ z( r  Z% Y, |
  7. and [user_cash].id=inserted.id2 n% r4 B  U, B. ?4 D
复制代码

+ K4 l. A6 M' j$ Y8 B+ h$ p* U  S5 Y. R' S- P7 t% Q
查询GM号
7 l' S4 M$ [' t4 _) w, _& S% \
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

3 N6 \! j7 Z' Y! D) X
, b) X+ W5 t, S% n
9 h- Q3 F/ |' X3 m( Q. t% }+ C- Z# H# R$ P, G) k
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-4-3 06:34 , Processed in 0.042024 second(s), 23 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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