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

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

[复制链接]

96

主题

3

回帖

1323

积分

超级版主

积分
1323
金钱
228
贡献
996
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
( [: X6 m9 E9 h* u1 q7 u7 `
9 r9 B, z) X8 T/ y3 k4 S; x上线送时间
/ `& |7 d: d' Y" C! K( `, m# o/ a用查询分析器 必须在billing执行
) A1 W( J0 d8 i9 F) R& ]
  1. CREATE TRIGGER [free] ON [dbo].[user_account]) G" |3 s1 \7 s+ k
  2. after Insert
    3 c. ^% w1 I3 P/ j$ G
  3. as1 ], j& x4 w  j, G) j
  4. Update [user_account] set
    ( g  ~. N  @8 h* o& G
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    : \% q5 s8 Y) O% ]/ Y$ N2 P0 C  b. W
  6. From Inserted
    4 a# M# ~( A! E$ O7 Y8 v5 h# ~+ q+ D
  7. Where [user_account].user_id=inserted.user_id; e- O- Z8 B% h( l
  8. and [user_account].group_id=inserted.group_id: h  i3 d! X0 ?- z4 n
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
    * |; y3 @7 U" e+ q
  10. where expire_freetime =2006-1-9
复制代码
: L- H% r8 O; D( l

1 M$ V! D# [% i  b% b4 f上线送商币
  F. ]( b, ~$ b& |' Q5 K) ^' c用查询分析器 必须在 cash
5 T! z/ M3 p4 |
9 m$ T" ]# ]+ ^( t5 Q% w
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] ; g, s# u# g# [$ C( y4 V( I
  2. after Insert & g4 z1 K3 ~+ P' m: L6 f+ z3 z
  3. as . P$ F  Z. M; j/ K- w: \
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000: z. `, S. C2 K9 @$ b3 T0 K4 E
  5. From Inserted ( h* i4 m  b  D& f6 Z* @
  6. Where [user_cash].group_id=inserted.group_id   u' q2 h  M( u/ R& f" r
  7. and [user_cash].id=inserted.id0 s; E+ f! J! f+ Z4 H
复制代码

9 @4 u0 X" E  ?6 h6 X. n
5 h) b# h' [; C; c查询GM号+ D7 w( \$ m* T. ?& ~
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
. C# u; k$ j* F! N; P5 K# j3 H
0 o$ J% J* F6 I# W+ s! Z

# N# u5 ^: q! \5 ]& Q0 n: M. J- a( ?2 M
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-6-10 08:17 , Processed in 0.029125 second(s), 23 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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