麻烦描述的详细一下吧
如 sqlsever 的分页
SELECT * FROM
(SELECT ROW_NUMBER() OVER(ORDER BY createTime DESC ) AS rownum,
news.id,news.title,news.createTime,category.name FROM news ,category
WHERE news.caId=category.id and news.caId=@caid ) AS D
WHERE rownum BETWEEN (@pageIndex-1)*@pagesize+1 AND @pageIndex * @pagesize
ORDER BY createTime DESC