mysql 查询某个日期时间段,每天同一时间段的数据:
SELECT * FROM t_a01_eltable WHERE DATE_FORMAT(acqtime,'%Y-%m-%d')>='2016-01-01' AND DATE_FORMAT(acqtime,'%Y-%m-%d')<='2016-05-20' AND DATE_FORMAT(acqtime,'%H')>=18 AND DATE_FORMAT(acqtime,'%H')<=19;
转载于:https://www.cnblogs.com/jym-sunshine/p/5483155.html
相关资源:数据结构—成绩单生成器