我曾经用日历应用程序进行过这样的查询。我想我使用了这样的东西:
... WHERE new_start < existing_end
AND new_end > existing_start;
这肯定应该工作((ns,ne,es,ee)=(new_start,new_end,existing_start,existing_end)):
检查MySQL中日期范围的重叠
我曾经用日历应用程序进行过这样的查询。我想我使用了这样的东西:
... WHERE new_start < existing_end
AND new_end > existing_start;
这肯定应该工作((ns,ne,es,ee)=(new_start,new_end,existing_start,existing_end)):