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

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

[复制链接]

96

主题

3

回帖

1115

积分

超级版主

积分
1115
金钱
228
贡献
788
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 & A2 Q- t  K) Y% v6 u( S

  n  V. T$ h; T5 v, D上线送时间
: A* U/ C5 s" B% s/ b4 ~. h* M用查询分析器 必须在billing执行
# F+ @, J/ }. p% N9 e0 t/ p
  1. CREATE TRIGGER [free] ON [dbo].[user_account]3 B0 F" o7 B* V) H
  2. after Insert/ p2 A6 ^1 g& P% p- a3 _0 m4 Q0 b
  3. as
    8 O/ Z6 ]) h3 S
  4. Update [user_account] set; \  ~% b' S1 e! \; Z. T, ]! p
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-96 n4 [0 [; W  H* E/ C3 z& R
  6. From Inserted( w3 b4 Y# N5 r* \
  7. Where [user_account].user_id=inserted.user_id) A# d3 ?8 j* U; {( V5 d
  8. and [user_account].group_id=inserted.group_id/ I$ ^& k- g9 H4 @8 r* _
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
    4 t3 q" T/ T; w5 h
  10. where expire_freetime =2006-1-9
复制代码
' S+ s  C9 ~: E; V* L

3 R4 @* L% q" a. c9 V+ I1 m, l! C: f上线送商币6 n5 p" R& Q0 A/ c5 F2 y4 B
用查询分析器 必须在 cash
" F+ ]* F/ e  }' _. y- v8 `4 v6 y3 c; w& R* j1 \1 e
  1. CREATE TRIGGER [free] ON [dbo].[user_cash]
    & n: v3 K3 i$ {
  2. after Insert
    3 q5 }9 i$ J: ~5 w
  3. as
    6 v% [; W8 d; C% d! W* m
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
    ' w. W. s9 m5 U$ K* F
  5. From Inserted
      c8 R! f% I) Z2 |* J% z6 V/ R4 J
  6. Where [user_cash].group_id=inserted.group_id 1 q( `. {- e$ n/ d0 B6 `4 U, K5 D# A
  7. and [user_cash].id=inserted.id9 ]4 k4 v- a3 X1 g2 Y8 q
复制代码

  a* Q: D7 u, ]+ E4 w; _
+ R; S6 R9 e, \! y$ [/ w( `查询GM号' `& ]8 Z  D% V! R9 y8 A
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
8 H) Y: n9 ?2 t! c' h
9 v% p( G  b& \& A3 I5 k! H, @
, i6 j% z6 W' g3 J
# m. B& G2 r3 ?- K
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2025-11-8 23:28 , Processed in 0.045173 second(s), 22 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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