标签:时间重叠
判断两个时间段是否有重叠
(a,b),(c,d)
判断两段时间是否有重叠
方法一
select ‘yes‘ from dual where d>a and c<b;
方法二
select ‘yes‘ from dual where (a, b) overlaps (c,d);
方法三
select ‘yes‘ from dual where a between c and d or d between a and b;
本文出自 “richard的笔记-积微成著” 博客,请务必保留此出处http://zxf261.blog.51cto.com/701797/1936827
标签:时间重叠
原文地址:http://zxf261.blog.51cto.com/701797/1936827