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

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

[复制链接]

96

主题

3

回帖

1115

积分

超级版主

积分
1115
金钱
228
贡献
788
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑
) Z( t. U  c# k" V; }: t/ o
# p+ B% W0 \. K/ S1 X  A' o上线送时间
1 {% a) |9 h8 y# d" w1 j用查询分析器 必须在billing执行0 w8 e0 V6 V9 K: c  h/ R" Q
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    $ _2 ?) n- J4 A) C* T9 h( V: O
  2. after Insert$ g5 P# A0 e! d+ [: K/ t# J
  3. as
    % B  t, \6 O* u* g
  4. Update [user_account] set; Z( S0 ?% |$ x: r0 s
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    ; b" q; B- ?3 J/ [4 y7 v) v( }& o
  6. From Inserted6 l' |( V3 H7 }2 G' I$ u3 G
  7. Where [user_account].user_id=inserted.user_id7 Y5 g( c! r7 R. t
  8. and [user_account].group_id=inserted.group_id& C2 U3 n+ b" }; _& Y7 g5 h- O& p
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
    9 b+ }& D, k, E9 Z1 y6 W) C1 n
  10. where expire_freetime =2006-1-9
复制代码

2 t0 H. b& Y# W+ A. K* x7 ^* i, }( j. Z) E- e
上线送商币# `* y& L1 X& D! y& a; e
用查询分析器 必须在 cash
2 P, j$ H" ^) F7 A6 s: ^/ c+ w7 m' Q; Z/ P7 g( `1 [
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] 3 `( W3 e3 l2 L6 W
  2. after Insert
    ! e" ]. m' \3 M* k
  3. as ' l; p: U4 h. R* \5 L3 D
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
    7 |4 W* K7 |( v  E
  5. From Inserted
    ) o" f0 \" Y& x
  6. Where [user_cash].group_id=inserted.group_id 6 K8 m3 R0 t4 D8 S
  7. and [user_cash].id=inserted.id7 j) z* ~% @1 f  ~8 S7 p- g& J
复制代码
' T- a3 p0 Q! s5 n& F0 T1 A

+ H' [- |0 U3 J; O, ^" A1 l( d查询GM号
: M1 r, F8 a# r5 X) R
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码

' b  y) J8 H1 _; x0 U( o" w6 G) A8 ?! i8 F# d0 V  V

3 i# y7 `/ r! b$ c! G1 o& ?( Z! l2 v# v! j7 w7 L+ L9 u
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2025-11-22 10:38 , Processed in 0.136945 second(s), 21 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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