"chore(data): 移除b.csv测试数据文件"
This commit is contained in:
9
help/给经验池增加.sql
Normal file
9
help/给经验池增加.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
UPDATE "player_info"
|
||||
SET data = jsonb_set(
|
||||
data,
|
||||
'{exp_pool}',
|
||||
-- 直接复用查询中的计算逻辑,确保结果一致
|
||||
to_jsonb(COALESCE((data->>'exp_pool')::int, 0) + 50000000),
|
||||
true -- 字段不存在时自动初始化为10
|
||||
)
|
||||
WHERE player_id = 10001;
|
||||
Reference in New Issue
Block a user