This seems rather simple but it has been giving me a headache. I have a column in my events table that is called \'date_time\' and it\'s type is datetime.
I need to writ
SELECT * FROM table WHERE date_time BETWEEN '2009-03-27 00:00:00' AND '2009-03-27 23:59:59'
Should do it.
Alternatively, try this:
SELECT * FROM table WHERE DATE(date_time) = '2009-03-27'
The DATE() function extracts the date part of the datetime column.