migrate from detailed stats to hourly stats


/ Published in: MySQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. 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;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.