1: 获取指定年 2: 获取指定月(例如当前时间2个月前) SELECT TO_CHAR(add_months(trunc(to_date('2019/05/06','YYYY/MM/DD')),-2),'YYYY/MM/DD') from dual; 3: 获取指定日