SELECT to_char(add_months(trunc(SYSDATE, ‘yyyy‘), -12 * (rownum - 1)), ‘YYYY‘) YEAR FROM dual CONNECT BY LEVEL <= 20
时间: 2024-10-10 23:42:08
SELECT to_char(add_months(trunc(SYSDATE, ‘yyyy‘), -12 * (rownum - 1)), ‘YYYY‘) YEAR FROM dual CONNECT BY LEVEL <= 20