我有像下面这样的计划数据课程,我怎么能检测到它上面是否有任何数据冲突/冲突数据?在 mysql 语法中
+-----------+--------+--------+---------+-----------+----------+---------+--------+-------+
| IDCourse | Day | Class | Room | IDTeacher | Capacity | Residue | Begin | End |
+-----------+--------+--------+---------+-----------+----------+---------+--------+-------+
| MI09BB11 | Monday | A | A.1.4 | RA | 40 | 1 | 08:00 | 10:00 |
| MI09BB12 | Monday | A | A.1.4 | RA | 40 | 1 | 08:30 | 10:30 | <-- clash
| MI09BB51 | Monday | A | A.1.4 | RA | 40 | 1 | 11:00 | 13:00 |
-
-
-
+-----------+--------+--------+---------+-----------+----------+---------+--------+-------+
对不起我的英语不好。谢谢