在sqlserver里,可以利用系统表master..spt_values里面存储的连续数字0到2047,结合dateadd()函数生成连续的日期。
SELECT CONVERT (VARCHAR (10),dateadd(d, number, '2019-05-30'),23) AS rq FROM master..spt_values WHERE type = 'p' AND number between 1 and 2049
参考博客:https://blog.csdn.net/qq_25186987/article/details/79258312