日期:2014-05-17 浏览次数:20537 次
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()