n00b n00b - 6 months ago 24
MySQL Question

Datetime equal or greater than today in MySQL

What's the best way to do following:

SELECT * FROM users WHERE created >= today;


Note: created is a datetime field.

Answer
SELECT * FROM users WHERE created >= CURDATE();

But I think you mean created < today

Comments