获取上个月起的前6个月
where dim_month between to_date(to_char(add_months(sysdate,-6),\'YYYYMM\'),\'YYYYMM\') and to_date(to_char(add_months(sysdate,-1),\'YYYYMM\'),\'YYYYMM\')
获取上个月起的前6个月
where dim_month between to_date(to_char(add_months(sysdate,-6),\'YYYYMM\'),\'YYYYMM\') and to_date(to_char(add_months(sysdate,-1),\'YYYYMM\'),\'YYYYMM\')
相关文章: