Home  >  Article  >  Backend Development  >  库-php+mysql查询历史时间中消费最高的一天

库-php+mysql查询历史时间中消费最高的一天

WBOY
WBOYOriginal
2016-06-02 11:32:25890browse

php库查询

库字段

ID 时间 消费

1 2015-4-1 500

2 2015-4-2 300

3 2015-4-2 600

4 2015-4-5 400

5 2015-4-5 300

查询统计历史时间中消费最高的一天, 也就是把每一天消费相加, 取历史最高的一天显示,PHP+MYSQL如何实现?实SQL语句

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn