SELECT distinct to_char(T.ROWDATE,'yyyy') AS FYEAR FROM ( SELECT TO_DATE('${pv3}', 'yyyy-mm') + ROWNUM ROWDATE FROM DUAL CONNECT BY ROWNUM < TO_DATE('${pv1}', 'yyyy-mm') - TO_DATE('${pv3}', 'yyyy-mm') + 2)T order by to_char(T.ROWDATE,'yyyy') 年份sql如上所示,数据预览可以出来,为什么把年份拖到单元格,整个报表无法出来,也没有报错 |