You can use generate_series but it will fail if your dates are not on the same date - e.g. if the start date is 2017-10-30
and the end date is 2018-02-28
SELECT generate_series('2018-01-01','2018-04-01',interval '1 month');
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…