${IF(开始日期=当前月,表A,表B)},怎么再加一个条件,如果结束时间等于当前月,就查表A,反之查表B呢,类似 这样 IF(条件1,条件2,'表A','表B')
${IF(month(开始日期)=month(today()),"select * from a",if(month(结束日期)=month(today()),"select * from a","select * from b"))}
${IF(month(开始日期)=month(today()) && month(结束日期)=month(today()),"select * from a","select * from b")}
${IF(and(开始日期=当前月,j结束日期=当前月),表A,表B)}
数据sqlserver集声明变量