This commit is contained in:
2026-03-11 01:06:58 +08:00
parent 0088ccfc9d
commit 769d664677

View File

@@ -1,4 +1,5 @@
-- 获取最旧于最新的数据 -- 获取最旧于最新的数据
-- 2026-01-27 19:27:12.000000 +00:00
select to_timestamp(min(timestamp)) as min, to_timestamp(max(timestamp)) as max select to_timestamp(min(timestamp)) as min, to_timestamp(max(timestamp)) as max
from activities; from activities;
@@ -153,7 +154,7 @@ order by count((world_id, x, y, z)) desc;
select world_id, x, y, z, count((world_id, x, y, z)) select world_id, x, y, z, count((world_id, x, y, z))
from activities from activities
where action_id = (select action_id from actions where action = 'block-break') where action_id = (select action_id from actions where action = 'block-break')
and cause_id is not null and cause_id is null
and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1 and timestamp > EXTRACT(EPOCH FROM current_timestamp(0))::bigint - 86400 * 1
group by world_id, x, y, z group by world_id, x, y, z
order by count((world_id, x, y, z)) desc; order by count((world_id, x, y, z)) desc;