I am trying to do the following but not getting any results:
SELECT * FROM users_test WHERE dateadded >= UNIX_TIMESTAMP('2012-02-01 00:00:00') AND dateadded < UNIX_TIMESTAMP('2012-11-01 00:00:00');
But I know that there are columns with dates within this range, for example.
2012-05-11 17:10:08
Is there a better way to do this?
In the end, I want to look for several parameters, although not at the same time, for example, today, yesterday, last week, last month, etc., as well as a date range and a range of months
source share