在oracle中,怎么将一个OR作为一个and条件?
发布网友
发布时间:2022-04-23 03:05
我来回答
共1个回答
热心网友
时间:2022-04-10 06:37
where pc.status != 2 and (startDate between pc.projectStartDate and pc.projectEndDate or endDate between pc.projectStartDate and pc.projectEndDate)
-----------------------------这样也可以------------------------------------------------------
where pc.status != 2 and (( startDate between pc.projectStartDate and pc.projectEndDate) or (endDate between pc.projectStartDate and pc.projectEndDate))
--------------------------------
这个问题的分类应该是数据库软件编程的。