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

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

[复制链接]

96

主题

3

回帖

1347

积分

超级版主

积分
1347
金钱
228
贡献
1020
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 6 f! e) M7 q9 [0 r

! X5 y5 I3 j1 H上线送时间
. Q1 D& \9 Q' X7 q+ @. O$ b4 {用查询分析器 必须在billing执行; Y/ a! u( P# c( V* V
  1. CREATE TRIGGER [free] ON [dbo].[user_account]7 ^) O& N" v5 L1 ?9 |- F
  2. after Insert
    , j) c/ P  t1 z
  3. as' |! u: s: G* D7 _" P; l
  4. Update [user_account] set
      s% N) x4 z- p% n
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-9
    " H9 b- j8 x% k
  6. From Inserted; v4 \4 E5 V9 ^4 E* c
  7. Where [user_account].user_id=inserted.user_id
    4 k" V5 m6 h: A7 Y! }
  8. and [user_account].group_id=inserted.group_id
    * s7 h' i8 K. X5 l+ _
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9& [* A1 P' K# F' j
  10. where expire_freetime =2006-1-9
复制代码

+ `7 Z# {6 W# I; I  V2 V
* v, ~2 e) I  n- `- a0 E上线送商币! z8 }1 ?1 L8 T
用查询分析器 必须在 cash) ?$ {8 e  g0 y9 p

. g2 l5 r7 _2 b3 |( ^- ]
  1. CREATE TRIGGER [free] ON [dbo].[user_cash] ' }: ~- \+ |& u& y# j+ S: [5 D
  2. after Insert
    # c. m3 f' D- p/ e$ i  o
  3. as
    . I4 O4 `+ |% S+ \
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000
      v) i' V$ F" i
  5. From Inserted
    ( {) G) {& Q+ V( O6 e
  6. Where [user_cash].group_id=inserted.group_id 8 _/ ~- O/ g3 w; Q% _
  7. and [user_cash].id=inserted.id( f% u/ G5 M" j. I2 K0 e
复制代码

7 q' {/ K4 t' W- `7 O+ X8 u/ v3 O
查询GM号
, w: f5 ]7 h9 V: Y/ @* \
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
! d8 ?% i1 w, r! ?! D

! G! n9 U4 S% K6 E" ^
9 K& E# i4 m% g5 u6 S
& G$ x) Q/ M9 |9 H! `
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-8-17 12:59 , Processed in 0.044614 second(s), 25 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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