From 362ef3489b8aac3363aa1b52b916a3f38d621523 Mon Sep 17 00:00:00 2001 From: Fortern Date: Sun, 4 Jan 2026 17:01:04 +0800 Subject: [PATCH] prism --- PostgreSQL/prism/prism.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PostgreSQL/prism/prism.sql b/PostgreSQL/prism/prism.sql index cfe328a..4e29d66 100644 --- a/PostgreSQL/prism/prism.sql +++ b/PostgreSQL/prism/prism.sql @@ -165,10 +165,10 @@ where action_id = (select action_id from actions where action = 'block-break') and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1 limit 100; --- 1天内,发射器的数据,按发射的物品分组统计 +-- 1天内,item-dispense行为,按发射的物品分组统计 select descriptor, count(*) from activities -where action_id = 2 +where action_id = (select action_id from actions where action = 'item-dispense') and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1 group by descriptor order by count(descriptor) desc;