在oracle中,怎么将一个OR作为一个and条件?

2025-03-29 12:28:59
推荐回答(1个)
回答(1):

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))

--------------------------------
这个问题的分类应该是数据库软件编程的。