javabg
            and (
                        (begin_date  <=\'2020-08-01\' and end_date >=\'2020-12-09\') 
                        or (begin_date  >=\'2020-08-03\' and end_date <=\'2020-12-09\')
                        or (begin_date  >=\'2020-08-03\' and end_date >=\'2020-12-09\')
                         or (begin_date  <=\'2020-08-03\' and end_date>=\'2020-08-03\' and end_date <=\'2020-12-09\')
                        )        

sql分4中情况,分别包含就行

 查询表数据如下:

 

分类:

技术点:

相关文章:

  • 2021-12-13
  • 2021-12-03
  • 2022-01-13
  • 2021-12-13
  • 2021-06-21
  • 2021-12-18
猜你喜欢
  • 2021-12-03
  • 2021-12-03
  • 2021-12-13
相关资源
相似解决方案