select top 8 * from view_product_price where prodid not in(select top 16 prodid from product_price where pc4_id=256 or pc4_id=257 order by p_time desc) and pc4_id=256 or pc4_id=257 order by p_time desc
用临时表,把所有结果都放在临时表里,并且把临时表里的每一条结果自动编个号 如: select identity(int,1,1) as id,* into #temp from 表 where 条件 现在,临时表里的每一条记录都有一个编号,从1开始的编号 所以,你分页的时候可以这样子取(假如你每页显示10条记录) select * from #temp where id>0 and id <=10 诸如此类的