时间:2021-07-01 10:21:17 帮助过:14人阅读
SELECT * from table where DATE(FROM_UNIXTIME(time))=DATE(NOW());
------解决方案--------------------
SELECT * FROM table WHERE DATE(FROM_UNIXTIME(time))=CURDATE();
------解决方案--------------------
SELECT * FROM table WHERE FROM_UNIXTIME(TIME, '%Y-%m-%d' ) =CURDATE();
------解决方案--------------------
以上写法均不推荐:
select * from `table` where `time` >= curdate()