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

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

[复制链接]

96

主题

3

回帖

1267

积分

超级版主

积分
1267
金钱
228
贡献
940
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 ( M  H' j' G8 O/ c

" x: i2 Y& v# m# S) M- b: n4 b上线送时间/ J% V3 H& o9 g0 E
用查询分析器 必须在billing执行. z9 L: i7 G$ D
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    7 C- |& |& o- P
  2. after Insert9 H5 }! {+ P/ B% P
  3. as
    ; X  j" W* {" F9 w
  4. Update [user_account] set
    $ m. h+ f( t0 v# x% a% s
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    & t; C$ w6 t+ L; B1 [) p- x
  6. From Inserted2 h7 F: F4 _" \! l
  7. Where [user_account].user_id=inserted.user_id  m% }+ l( q; R, `% ?
  8. and [user_account].group_id=inserted.group_id
    - U6 }) g3 M- q2 I
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-92 P' ]8 r5 T% F0 l9 y/ X, j
  10. where expire_freetime =2006-1-9
复制代码
" B( L; n( E) g) o6 K6 ?1 |

: p  ~& X( e2 S上线送商币
& H* _  N& }, x- }, h用查询分析器 必须在 cash' X, B+ U$ G/ ~( N# z3 _
$ ^) [( g0 R- {6 p6 u
  1. CREATE TRIGGER [free] ON [dbo].[user_cash]
    / G# x2 v9 p) I
  2. after Insert 7 U1 t3 [; H, M$ C& b0 C7 ^
  3. as ' @( H6 W7 \. N. ~5 f3 k* v
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000- H: X' G3 ~! ]8 c0 `) i: C7 ?' a
  5. From Inserted
    & j9 l1 x0 D3 J; d) B
  6. Where [user_cash].group_id=inserted.group_id % S. I, [  Q& p4 Q
  7. and [user_cash].id=inserted.id
    0 H1 R* l1 _" T& x) H
复制代码
% Z7 P# t/ N2 u

6 I2 Q! T$ s; h! q+ R查询GM号
) Y" W1 P. ^- @; ]1 d7 b$ V
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
7 C% u" Q8 M, Z1 w& q; a

  Y5 x) F, _. I( @+ t; C* m" V1 i& O! x' R# L* A

+ C1 C3 n! g2 \% k5 a
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-2-16 11:03 , Processed in 0.050099 second(s), 22 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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