散分,並如何判斷時間段上有重疊衝突。

好比某個會議室的預訂信息表 roomBookInfo(id,title,beginTime,endTime), 如今有一個新的預訂請求 @bTime, @eTIme 分別 表明 開始、結束時間。

請檢查下表中的記錄,查看是否有時間上的衝突。


create table roomBookInfo (id int auto_increment primary key, title varchar(10), beginTime datetime not null , endTime datetime not null);web

相關文章
相關標籤/搜索