SELECT (TO_DATE('2016/02/01','yyyy/mm/dd')+level-1) days FROM dual CONNECT BY level<=TO_CHAR(LAST_DAY(TO_DATE('2016/02/01','yyyy/mm/dd')),'DD')