日期:2014-05-17 浏览次数:20594 次
;WITH c1 AS (
SELECT rn=ROW_NUMBER() OVER(ORDER BY GETDATE()),name FROM sys.objects
),c2 AS (
SELECT * FROM c1
UNION ALL
SELECT rn+0.1,'' FROM c1 WHERE rn%15=0 UNION ALL
SELECT rn+0.2,'' FROM c1 WHERE rn%15=0 UNION ALL
SELECT rn+0.3,'' FROM c1 WHERE rn%15=0
)
SELECT * FROM c2 ORDER BY rn;