效率高:
select to_date('','yyyymm')+(rownum-1) s_date from dual
connect by rownum<=last_day(to_date('','yyyymm')) - to_date('','yyyymm') + 1
效率低:
select
to_date('','yyyymm')+(rownum-1) s_date
from all_tables
where rownum <=
(
select last_day(to_date('','yyyymm')) - to_date('','yyyymm')+1 from dual
)