plsql 输出当月的所有日期

SELECT TRUNC(SYSDATE, 'MM') + ROWNUM - 1
  FROM DUAL
CONNECT BY ROWNUM <= TO_NUMBER(TO_CHAR(LAST_DAY(SYSDATE), 'dd'))
posted @ 2011-10-08 13:49  郭振斌  阅读(590)  评论(0编辑  收藏  举报