Something is wrong with statements with datetime field:
MyDB:
id name datetime
1 test1 2011-04-28 19:37:44
2 test2 2011-04-28 21:27:04
When I run the following statement
SELECT *
FROM myTable
WHERE ('datetime' > '2011-04-28 21:00:00')
I get all - test1 and test2
When I run this statement
SELECT *
FROM myTable
WHERE ('datetime' = '2011-04-28 21:27:04')
I get nothing
When I run the following statement
SELECT *
FROM myTable
WHERE ('datetime' > '2011-04-28 21:00:00')
AND ('datetime' < '2011-04-29 21:00:00')
I get nothing
Why?