现在是2016-09-23,查询2个月后的月份和入职的月份相同的数据 select * from emp where to_char(hiredate,'mm')=to_char(add_months( sysdate,2),'mm'); 结果: