标签:int div time and inf day 今天 where sql
SELECT * FROM t_violation_info WHERE ( DATE(UPDATED_TIME) = CURDATE() AND HOUR (UPDATED_TIME) < 16 ) OR ( DATE(UPDATED_TIME) = DATE_SUB(CURDATE(), INTERVAL 1 DAY) AND HOUR (UPDATED_TIME) >= 16 )
标签:int div time and inf day 今天 where sql
原文地址:https://www.cnblogs.com/daihu/p/9958924.html