--sql查出每天的总数select date,sum(code) from serverinfo? where date between '2012-06-13' and '2012-06-14' group by date;
?
注 : date 为表的字段名