日期:2014-05-18 浏览次数:20516 次
DECLARE @Star INT = 3+8 , @End INT = 3+8+31-1 WHILE @Star <= @End BEGIN SELECT CASE WHEN @Star % 8 = 0 THEN 8 ELSE @Star % 8 END AS Num SET @Star = @Star +1 END