time >= DATE_FORMAT(
CURDATE(),
'%Y-%m-%d %H:%i:00'
)
AND time < date_add(
DATE_FORMAT(now(), '%Y-%m-%d %H:%i:00'),
INTERVAL - 1 MINUTE
)
TO_DAYS(b.cdate) = TO_DAYS(now())
b.cdate >= DATE_FORMAT(
CURDATE(),
'%Y-%m-%d %H:%i:00'
)
AND b.cdate < date_add(
DATE_FORMAT(now(), '%Y-%m-%d %H:%i:00'),
INTERVAL - 10 SECOND
)
recharge_time >= DATE_FORMAT(
DATE_SUB(CURDATE(), INTERVAL 1 DAY),
'%Y-%m-%d %H:%i:00'
)
AND recharge_time < DATE_FORMAT(
DATE_SUB(CURDATE(), INTERVAL 0 DAY),
'%Y-%m-%d %H:%i:00'
)
e.compute_time >= DATE_FORMAT(
DATE_SUB(CURDATE(), INTERVAL 1 DAY),
'%Y-%m-%d %H:%i:00'
)
AND e.compute_time < DATE_FORMAT(
DATE_SUB(CURDATE(), INTERVAL 0 DAY),
'%Y-%m-%d %H:%i:00'
)
//某天日期
DATE_SUB(CURDATE(), INTERVAL 1 DAY)
//某天日期+时分秒
DATE_FORMAT(DATE_SUB(CURDATE(), INTERVAL 0 DAY),'%Y-%m-%d %H:%i:00' )
//某天
date_sub(now(), INTERVAL 1 MINUTE)