摘要:
获取过去两年的今天时间: SELECT last_day(ADD_MONTHS(ADD_MONTHS(sysdate,-12), ROWNUM - 1)) as monthlist FROM DUALCONNECT BY ROWNUM <= months_between(SYSDATE, ADD_M 阅读全文
摘要:
获取过去一年每个月月末时间: SELECT last_day(ADD_MONTHS(ADD_MONTHS(sysdate,-12), ROWNUM - 1)) as monthlist FROM DUALCONNECT BY ROWNUM <= months_between(SYSDATE, ADD 阅读全文