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

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

[复制链接]

96

主题

3

回帖

1323

积分

超级版主

积分
1323
金钱
228
贡献
996
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 ' N- m( A% F2 n% a

7 A: ~2 D5 d) b& q, c- j上线送时间0 C. {/ a) J6 X. t
用查询分析器 必须在billing执行
8 G$ O" S, o% [
  1. CREATE TRIGGER [free] ON [dbo].[user_account]# E. T; E$ t. t3 d) J
  2. after Insert
    $ y+ z$ H1 b8 A
  3. as' v+ H( p$ Z2 S  M9 H
  4. Update [user_account] set( a, a0 H7 C6 ?! [! J5 c
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9% b' X! Z; W9 p. m+ [" S
  6. From Inserted
    0 O1 _4 E* s3 I9 A/ s) M
  7. Where [user_account].user_id=inserted.user_id# d, f' ]4 N. L& x4 o8 P6 Y
  8. and [user_account].group_id=inserted.group_id$ Y4 ?, z) e* e8 f& u
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
    " t0 \6 @8 u* Z8 [% \
  10. where expire_freetime =2006-1-9
复制代码

' ]9 K0 X# u4 a( U- j
( t& |2 P6 [$ y5 P" C上线送商币
5 e! Z, J3 b% o+ ^" A用查询分析器 必须在 cash7 J4 ~- I9 A: x$ h3 f0 [0 _
  a, L) I2 o  }9 L* k3 q
  1. CREATE TRIGGER [free] ON [dbo].[user_cash]
    2 Z- V/ _( H+ ^
  2. after Insert " ~7 K0 L8 u) f1 z) p" j
  3. as
    , i3 Y) B( D2 ^, s* z) s
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
    1 V( H9 E7 n- G- v! H$ @
  5. From Inserted
    2 |2 D1 z! L3 x9 ?8 [4 L! D* s# Y
  6. Where [user_cash].group_id=inserted.group_id - M$ }4 y1 a) u0 A* f
  7. and [user_cash].id=inserted.id9 w4 _7 ?: d# Z  o0 e! A
复制代码
2 R# }- u1 m. q5 c. @( b1 N
& x. s: s- J7 k: G! U- [
查询GM号
# Y! F' N5 y3 z; J2 `( V6 U$ t9 w4 _
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

- {5 f8 f# r; I9 P9 h6 t  U* U% W5 s  P

2 k9 {3 ^- [* k  }3 k* [7 _
  k8 i8 m7 h1 ^5 w2 i/ s( H
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-6-3 02:31 , Processed in 0.025299 second(s), 24 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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