日期:2014-05-18 浏览次数:20675 次
select number, (select number from master..spt_values b where b.number=a.number+10 and b.type='p') as number from master..spt_values a where a.number between 1 and 10 and type='p' /* number number 1 11 2 12 3 13 4 14 5 15 6 16 7 17 8 18 9 19 10 20 */ 随便用系统表构造了一个例子