时间:2021-07-01 10:21:17 帮助过:59人阅读
ID START_DATE END_DATE VAL
1 00:00:00 06:00:00 0.5
2 06:00:00 20:00:00 11
3 20:00:00 00:00:00 99
如上图所示,要如何查询当前时间所匹配的行?
SELECT * FROM my_date WHERE (start_date>CURTIME() and end_date