I have a column, which is datetime type, the value is like this:
2009-10-20 10:00:00
I want to do a select, my query:
SELECT * FROM
data
WHERE datetime = '2009-10-20'
ORDER BY datetime DESC
Should I do this:
SELECT * FROM
data
WHERE datetime BETWEEN('2009-10-20 00:00:00' AND '2009-10-20 23:59:59'
ORDER BY datetime DESC
But it returns 0 result. Please help