前几年select to_char(sysdate, 'yyyy') - level + 1 years from dual connect by level <= numnum:即想获取几年的后几年select to_char(sysdate, 'yyyy') + level - 1 years from dual connect by level <=numnum:即想获取几年的