
select * from table where id not in (
select id from table
where (start_time >= @startTime and end_time <= @endTime)
or (start_time <= @endTime and end_time >= @endTime)
or (start_time <= @startTime and end_time >= @startTime)
or (start_time <= @startTime and end_time >= @endTime)
)
1万+

被折叠的 条评论
为什么被折叠?



