If you want to generate those rows, you can use a recursive query:
with cte as (
select 0 n
union all select n + 1 from cte where n < 12
)
select dateadd(month, -n, convert(date, getdate())) dt from cte order by dt
This gives you today's date, and the same day of the month for the preceding 12 month (so that's a total of 13 rows). You can adjust the inequality condition in cte
to the the exact number of iterations that you want. If you need more than 100 iterations, then you need to add option (maxrecursion 0)
at the end of the query.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…