MySQL 中的日期时间等于或大于今天
执行以下操作的最佳方法是什么:
What's the best way to do following:
SELECT * FROM users WHERE created >= today;
注意:created 是一个日期时间字段.
Note: created is a datetime field.
推荐答案
SELECT * FROM users WHERE created >= CURDATE();
但我认为你的意思是 created <今天
But I think you mean created < today
相关文章