数据库时间段:tStart,tEnd
提交的时间段:pStart,pEnd如果2个时间段只要有相交,就不要,
select count(*) from table where !(pEnd<tStart or pStart>tEnd)
如果能查询出来结果,提交的时间段不符合要求
提交的时间段:pStart,pEnd如果2个时间段只要有相交,就不要,
select count(*) from table where !(pEnd<tStart or pStart>tEnd)
如果能查询出来结果,提交的时间段不符合要求
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货