日期:2014-05-17 浏览次数:20438 次
declare @stime datetime
declare @etime datetime
set @stime='2013-06-01'
set @etime='2013-06-04'
select convert(varchar,dateadd(day,number,@stime),23) from master..spt_values
where type='p'
and dateadd(day,number,@stime)<=@etime