日期:2014-05-18 浏览次数:20511 次
declare @start datetime declare @end datetime set @start = '2012-04-01' set @end = '2012-04-12' select dateadd(dd,number,@start) date from master..spt_values where [type] = 'p' and number between 0 and datediff(dd,@start,@end)