MySQL: Compare BETWEEN time

i think what you are looking for is:

SELECT * FROM table WHERE start < CAST('05:00:00' AS time) AND end > CAST('05:00:00' AS time)

I’m not sure if you need to use the CASTs, though this should also work.

SELECT * FROM table WHERE start < '05:00:00' AND end > '05:00:00'

Leave a Comment