标签:date() .com 日期 com png logs nbsp sel max
DECLARE @mindate DATETIME; DECLARE @maxdate DATETIME; SET @mindate = DATEADD(MONTH, -11, GETDATE()); SET @maxdate = GETDATE(); WITH temptab ( date ) AS ( SELECT @mindate UNION ALL SELECT DATEADD(m, 1, temptab.date) AS date FROM temptab WHERE DATEADD(m, 1, temptab.date) <= @maxdate ) SELECT * FROM temptab;
标签:date() .com 日期 com png logs nbsp sel max
原文地址:http://www.cnblogs.com/yzenet/p/6944377.html