This is my query
SELECT * FROM `orders` WHERE `order_datetime` LIKE '2011-11-11' LIMIT 0 , 30
I have a record already with the values
order_datetime
2011-11-11 02:07:07
2011-11-11 01:07:07
2011-11-11 00:07:07
2011-11-11 11:07:07
It just returns 0 results. Clearly I don’t want to search the time part as that always changes. I just want to select all records with 2011-11-11 inside them.
If
order_datetimeis a DATETIME field: