select to_char(add_months(trunc(sysdate),-1),'yyyymm') from dual; 转载于:https://www.cnblogs.com/cnjava/p/3480832.html