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

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

[复制链接]

96

主题

3

回帖

1267

积分

超级版主

积分
1267
金钱
228
贡献
940
注册时间
2023-11-3
发表于 2023-11-5 16:40:44 | 显示全部楼层 |阅读模式
本帖最后由 EGameol 于 2023-11-5 16:41 编辑 ) ^# D& @( ]+ W$ L/ \( {8 L

' f/ }4 o( O; E. L2 Z2 y! V6 D: Q上线送时间. A- g/ _6 N  ]5 q! U* E; o+ k
用查询分析器 必须在billing执行, V( L& u7 b4 u7 k! i8 {* |+ x0 i
  1. CREATE TRIGGER [free] ON [dbo].[user_account]
    / g" i' l" \6 [8 Q9 t
  2. after Insert
    0 R- d2 Z' U; g* I  N$ {: u4 X  ^) O% B
  3. as
    ! a% [5 l3 T$ d& ?
  4. Update [user_account] set$ A+ t3 ]0 n& E1 Q$ h) a$ r
  5. [user_account].remain_time =999999,remain_freetime =999999,expire_freetime =2999-1-96 A% h' X" R$ P# u  u4 u7 R+ m
  6. From Inserted/ N- ?$ I/ j& h
  7. Where [user_account].user_id=inserted.user_id: L' y& @  U* L! R- ~
  8. and [user_account].group_id=inserted.group_id& G2 C2 G$ V4 {
  9. update  user_account set remain_time =999999,remain_freetime=999999,expire_freetime=2999-1-9+ x, E) d* n( x' Y+ ^/ I5 A, g. P. z
  10. where expire_freetime =2006-1-9
复制代码

8 U& i0 s( r6 t+ X+ L8 R) H& w) q3 L" y4 n1 X" o. W- H& O; c
上线送商币
* l6 q( g( L7 Z" J: F用查询分析器 必须在 cash4 v$ e7 C5 i% _; u

- t) j' @5 H- X
  1. CREATE TRIGGER [free] ON [dbo].[user_cash]
    3 s' c; Q) l* w
  2. after Insert ) R% z2 v; N: T" j
  3. as
    ( j0 t$ Q" Z/ D+ ^, d! y4 _, t
  4. Update [user_cash] set [user_cash].amount=900000000,free_amount=900000000' m. _& F+ m3 Y: Z& Q
  5. From Inserted
    * X+ Q  U2 o- L& e+ X
  6. Where [user_cash].group_id=inserted.group_id
    8 L# Q% G  t* Z4 ^1 X' k; V
  7. and [user_cash].id=inserted.id0 N% d4 A1 ^" @: U' d  I
复制代码

$ G% C2 X# r4 d- H+ B1 R2 o8 }) F0 n  a0 y# E: l0 y! i, C
查询GM号
* @$ ?; y! l2 p) s0 j
  1. selectcharacter_namefromcharacter.dbo.user_characterwherecharacter_namelike%GM%
复制代码
* c- i0 a$ u9 O' I4 f- F* U
# y1 y) ^9 }, d5 k1 ^! ]- \

4 l& z* G- n* U2 e- o1 |8 F/ E- G5 {: h/ w. P% b& ~+ |
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Archiver|小黑屋|EGameol

GMT+8, 2026-2-12 08:43 , Processed in 0.058715 second(s), 22 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

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