日期:2014-05-18 浏览次数:20536 次
select top 16 * from tbl_picinfo a where a.[picid]>=( select max(b.[picid]) from ( select TOP 1 [picid] from tbl_picinfo where 1=1 ORDER BY [picid] )b) and a.[picid] in (select min(picid) [picid] from tbl_picinfo group by dcname,rcname) ORDER BY a.[picid] 结果: 1 2 3 4 5 7 9 10 13 [color=#FF0000] 29 31 32 35 41 42 46 [/color] select top 16 * from tbl_picinfo a where a.[picid]>=( select max(b.[picid]) from ( select TOP 17 [picid] from tbl_picinfo where 1=1 ORDER BY [picid] )b ) and a.[picid] in (select min(picid) [picid] from tbl_picinfo group by dcname,rcname) ORDER BY a.[picid] [color=#FF0000] 29 31 32 35 41 42 46 [/color] 47 55 56 62 64 72 78 81 87