SQL判断两个日期时间区间是否有相交

需求:找出时间A到B时间段是否已经请过假了,或者这个期间已经请过假了 select count(id) from tblName where ... and ( (cast(concat(date_from,' ',time_from) as timestamp)    > '2018-03-30 08:00'   and cast(concat(date_from,' ',time_from)
相关文章
相关标签/搜索