mysql分段统计?_百度知道
mysql分段统计?5 表结构: +---+---+ | time | num | +---+---+ | 1256278360 | 10000000 | | 1256278370 | 10000000 | | 1256278380 | 10000000 ...
mysql 按时间段统计(年,季度,月,天,时) - danielyi - 博客园
mysql 按时间段统计(年,季度,月,天,时) 按年汇总,统计: select sum(mymoney) as totalmoney, count(*) as sheets from mytable group by date_format(col...