For example, if I have a field in the database that matters: 2010-10-20-12.00.00.000000
How can I get a numeric number containing 20101020.
So, I can do something like this:
SELECT * FROM file WHERE DATE(timestamp) BETWEEN 20101020 AND 20101031
This does not seem to work. DATE()does not return it in ISO format.
source
share