从详细统计迁移到每小时统计
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了从详细统计迁移到每小时统计相关的知识,希望对你有一定的参考价值。
insert into sitestats_rollup(hitdatetime,hitid,hitcount) select date_format(hitDate, "%Y-%m-%d %h:00:00"), hitKey, count(*) from sitestats group by 1,2 on duplicate key update hitcount=hitcount+1;
以上是关于从详细统计迁移到每小时统计的主要内容,如果未能解决你的问题,请参考以下文章