一、
二、
听说,这个只能用在SQL2005以上的数据库
select top 每页显示的记录数 * from topic where id not in
(select top (当前的页数-1)×每页显示的记录数 id from topic order by id desc)
order by id desc
二、
SELECT * FROM temptbl where Row between @startIndex and @endIndex
听说,这个只能用在SQL2005以上的数据库