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

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

[复制链接]

96

主题

3

回帖

1251

积分

超级版主

积分
1251
金钱
228
贡献
924
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 & f0 S  B5 ^5 ?% h5 e1 |8 B

2 T$ q# \% M# Z1 s2 Z+ G上线送时间
* H4 h4 t- b, [1 }* T用查询分析器 必须在billing执行
$ M4 A# u3 K+ d% U5 B$ b
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    7 F7 ?( X7 _* ^
  2. after Insert( B% H: Z+ I9 Z
  3. as; u. y/ [, S1 h1 Y* l/ Q2 E% v
  4. Update [user_account] set
    , G: [5 ]& Y/ e3 x# F8 l
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    * O$ `4 L4 c3 z" s: c9 m$ r
  6. From Inserted2 m) E+ z2 L6 z7 o9 D0 r7 B+ U4 e
  7. Where [user_account].user_id=inserted.user_id! I, I3 w/ Z# J2 N: b3 L$ t
  8. and [user_account].group_id=inserted.group_id8 U: Q+ l/ f& K3 s% B/ m, |' m
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9
    $ Q, X# ^' U- u" \% y
  10. where expire_freetime =2006-1-9
复制代码
2 c5 ~0 _* ~6 o" q1 p, s# H! |
/ R4 S4 T3 d/ X* G* p
上线送商币  X3 e( B" s; R" @" S: k5 Z  ^; ^
用查询分析器 必须在 cash1 [0 T0 d* m! S7 R5 n

: E( p7 a/ Z5 h4 `5 q  M1 R: P- u0 s: N
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] ' e% ~$ e9 T6 [- k
  2. after Insert
    % ~2 J# j" x8 m
  3. as & m0 I& u+ [, Y* F
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=9000000001 t8 H6 U; s- m3 B0 ?* L
  5. From Inserted 8 l! V5 {8 W: K$ [8 r& h: }3 `3 v2 i
  6. Where [user_cash].group_id=inserted.group_id : ^2 }' Q; Z; ^& V7 h/ Z
  7. and [user_cash].id=inserted.id8 w# g+ _! l! p, K- m' F8 r* h
复制代码

. W9 n4 D: ^( F* W
! h+ u! G7 D9 g1 S/ P查询GM号2 X6 y! A) b3 k0 T7 O3 {9 M3 |. l
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
  H6 ?8 B9 @: |) s2 g4 J
* Z" C! x' U8 ~( {! N: M

" A5 X; a# t' l% x% T% n/ x1 Z" R: [2 q- {6 }% ^- s; Z5 H- q! E
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-2-8 16:36 , Processed in 0.045862 second(s), 22 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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