MYSQL Select time from a date
04/01/2006
Consider you have a date field in mysql of format
|
date_booking_made
|
|
09/02/2005 13:52
|
and you wish to find all bookings made between two times not between two dates.
The solution is to issue the following query
SELECT date_booking_made from where hour(date_booking_made)> 10 and minute(date_booking_made) > 10
This sorts out the problem without having to seperate it into two different fields