Postgresql 按30分钟统计分组
按30分钟统计:
select
to_timestamp(concat (to_char(created_at, 'yyyy-mm-dd HH24'), ':', FLOOR(date_part('minute', created_at) / 30)* 30), 'yyyy-mm-dd HH24:MI') as stat_at,
count(1)
from
cc_call_sa...
原创
2019-12-03 10:14:57 ·
2293 阅读 ·
4 评论