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)
相關文章
相關標籤/搜索