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

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

[复制链接]

96

主题

3

回帖

1183

积分

超级版主

积分
1183
金钱
228
贡献
856
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
7 ]  `! |' I. \# A. d1 C4 `
# X. B5 ~' @# w2 X0 y5 o$ Y上线送时间
' V" g% K8 F4 V. Z- O/ ~: f用查询分析器 必须在billing执行
$ [6 k3 w4 N9 S) n- o
  1. CREATE TRIGGER [free] ON [dbo].[user_account]5 A. V1 [' N! ?, e, r, c
  2. after Insert7 C/ O! H7 X8 U( S3 u
  3. as
    : \1 ^: u& W( f( C: D% m
  4. Update [user_account] set3 ]9 r# \* V4 Q7 v: P
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    1 g* }$ _7 n: Z% R$ p
  6. From Inserted  y$ Y4 Z6 d8 G8 M7 S+ X) B
  7. Where [user_account].user_id=inserted.user_id
    * ~5 o% T- Q1 P- c2 v2 L- S1 s
  8. and [user_account].group_id=inserted.group_id0 ~/ k$ V  ?, ^6 I7 V& w
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
    4 W, M( F+ R: q8 u3 {* l; e
  10. where expire_freetime =2006-1-9
复制代码
* M2 k& g2 l% _+ M% M$ M0 V

% e7 b8 v+ t8 o- @$ H' ?上线送商币
( L7 W& v+ o' H9 n9 w' M, c用查询分析器 必须在 cash
! W9 j. R* W" {4 Z) M& {$ F6 o: k1 Z% q. n
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] ; n7 N3 i% m1 y! r- W0 L# _
  2. after Insert 4 T, G" Q) O" l. f$ ^
  3. as ; n$ F. P: u6 I( h: l3 o
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000- D2 y7 Y& w$ s; r+ L6 o( U+ C
  5. From Inserted
    ) e5 j: z* M& q3 _7 t
  6. Where [user_cash].group_id=inserted.group_id
    9 }2 `7 p6 ]5 Y- Z: _0 N! f3 Y
  7. and [user_cash].id=inserted.id
    9 \# [, v! g6 k& @9 W$ z
复制代码
1 F9 U! T4 z+ b- x7 M

" C4 |, {7 y) u  h5 _查询GM号
. H7 k7 ^& k! g# ~. D: o1 O
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

! W1 }. h$ O3 ]% {4 G( A6 n3 f  z3 i7 O

( b3 F2 F1 t- @8 T
+ y* }+ l& F2 S$ i* ^
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-1-1 15:09 , Processed in 0.048470 second(s), 22 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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