前几年
select to_char(sysdate, 'yyyy') - level + 1 years from dual connect by level <= num
num:即想获取几年的
后几年
select to_char(sysdate, 'yyyy') + level - 1 years from dual connect by level <=num
num:即想获取几年的
2022-10-22 20:29:01
前几年
select to_char(sysdate, 'yyyy') - level + 1 years from dual connect by level <= num
num:即想获取几年的
后几年
select to_char(sysdate, 'yyyy') + level - 1 years from dual connect by level <=num
num:即想获取几年的