我有下表存储教师课堂例程
表名:batchroutine_regular
batchid class_day subject teacherid class_start class_end
1 Sunday English-1 1001 02:00 PM 03:30 PM
1 Sunday Geography 1002 04:00 PM 05:30 PM
2 Monday Math 1001 10:00 AM 12:30 PM
2 Tuesday Geography 1001 01:00 PM 03:30 PM
teacherid
现在让我们说你是老师1001
。你被要求参加星期一的课程,该课程将在 开始11:00 AM
和结束1:00 PM
。现在我的问题是 MYSQL/PHP 查询从表中找出您当时是否有空batchroutine_regular
?
提前致谢 :)