假设数据按字段名ID从小到大排序的。
SQL=\"select top 10 * from [table_name] where id in (select top 20 id from [table_name] order by id desc) order by id asc\"
这样显示出来的就是:从11到20条数据
select top 10 * from details
where convert(varchar(10),orderid)+convert(varchar(10),productid)
not in(select top 10 convert(varchar(10),orderid)+convert(varchar(10),productid)
from details)