我使用了答案和同事的建议。最终结果如下:
Select FROM_UNIXTIME(stime), bytes
from argusTable_2009_10_22
where stime > (UNIX_TIMESTAMP()-600)
group by floor(stime /10)
我也尝试过舍入解决方案,但结果不一致。
MySQL按日期范围中的时间间隔进行分组
我使用了答案和同事的建议。最终结果如下:
Select FROM_UNIXTIME(stime), bytes
from argusTable_2009_10_22
where stime > (UNIX_TIMESTAMP()-600)
group by floor(stime /10)
我也尝试过舍入解决方案,但结果不一致。