Datetime equal or greater than today in MySQL(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
这篇关于MySQL 中的日期时间等于或大于今天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!