select round(t.avg/5,0)*5,count(*) from analyse_upid_sub_forspss t  group by round(t.avg/5,0)*5;
将平均值 除以5,再取整,对这个操作。
这个统计的是间隔 在一定范围内的(5s)总数