SELECT CONVERT(VARCHAR(10), DATEADD(dd, number, '2015-10-25'), 120) AS dtDate
FROM master..spt_values
WHERE type = 'P' AND DATEADD(dd, number, '2015-10-25') < '2015-11-10'
11:20:45
FROM master..spt_values
WHERE type = 'P' AND DATEADD(dd, number, '2015-10-25') < '2015-11-10'
11:20:45
这个是关键所在
select CONVERT(VARCHAR(10), DATEADD(dd, number, '2015-10-25'), 120),number
from master..spt_values WHERE type = 'P'