Home > Database > Mysql Tutorial > mysql按时间段分段查询

mysql按时间段分段查询

WBOY
Release: 2016-06-06 09:34:52
Original
1273 people have browsed it

mysql

每10分钟一组进行查询,期待结果是这种图片说明 这里我用的是 GROUP BY
floor(bet_date / 1000) * 1000 ,但是有个问题是,并不是所有的时间段都有数据,也就是说会出现这种问题图片说明 没数据的地方就没有时间,我希望没有数据的地方时间继续显示,数据是0也好null也好 都可以

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template