This commit is contained in:
11
help/查询多余精灵.sql
Normal file
11
help/查询多余精灵.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
SELECT
|
||||
player_id,
|
||||
COUNT(*) AS pet_count
|
||||
FROM
|
||||
"player_pet"
|
||||
WHERE
|
||||
(data->>'ID')::INT IN (273, 274) -- 适配JSONB的data字段取id并转整型
|
||||
GROUP BY
|
||||
player_id
|
||||
HAVING
|
||||
COUNT(*) >= 2; -- 筛选出拥有273/274宠物的玩家,可根据需求调整为>=2(同时拥有两者)
|
||||
Reference in New Issue
Block a user