标签:
SELECT to_char(add_months(trunc(SYSDATE, ‘yyyy‘), -12 * (rownum - 1)), ‘YYYY‘) YEAR FROM dual CONNECT BY LEVEL <= 20
取过去20年的年份
原文地址:http://www.cnblogs.com/huanghongbo/p/4620617.html