select o.* from user o where 1=1 and userId = 100041 and createTime between '2016-05-04' and '2016-05-06' order by o.createTime desc 始终缺少当天比如六号那天的记录,该怎么办?
2 回答
慕桂英3389331
TA贡献2036条经验 获得超8个赞
估计默认的是 2016-05-06 00:00:00 了
你用
createTime between '2016-05-04 00:00:00' and '2016-05-06 23:59:59' 试试
千巷猫影
TA贡献1829条经验 获得超7个赞
添加回答
举报
0/150
提交
取消