1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-07 00:18:14 +08:00
parent 637a49e274
commit 3947fbce4b
14 changed files with 61 additions and 44 deletions

View 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同时拥有两者