您的位置:首页 > 数据库

SQL检测开始日期 结束日期 是否存在交叉

2016-01-20 15:49 351 查看
检测开始日期 结束日期 是否存在交叉

where 1=1 "+tj+" and ((starttime>="+starttime+" and starttime<="+endtime+") " +
" or (endtime>="+starttime+" and endtime<="+endtime+" ) or (starttime>="+starttime+" and endtime<="+endtime+" ) " +
" or (starttime<="+starttime+" and endtime>="+endtime+" ))";
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: