一张表内有A、B两个时间字段和一起其他字段,如何按照今天的日期查询在A字段和B字段之间的数据比如A字段:2021-5-1,B字段2021-7-1查询今天的日期符合在两个字段的数据
select * from 表名 where getdate() between a and b
select * from 表名 where now() between a and b;