Generate series of months for every row in Oracle
问题 I am porting PostgreSQL select statement to Oracle. I cannot figure out how to re-write the following into Oracle syntax: select id, generate_series(date_trunc('month', st_date), en_date,'1 month')::date as dist_date from tst I have a basic idea how I can generate range of months in Oracle, but I think different approach is neeeded as I don't see a way how to plug the following into my sql: select add_months(trunc(sysdate, 'month'), level) from dual connect by level <= months_between(sysdate,