oracle 查询月份差

select to_char(add_months(trunc(sysdate),-1),'yyyymm') from dual;
原文地址:https://www.cnblogs.com/cnjava/p/3480832.html