SQL Servel 中分页解决

sql servel 不能像MySQL一样使用limit简单的实行分页显示,但sql servel中有top 也可以完成同样的效果。

例如:每页显示a条记录,第b页

表名:article

属性:id

select top a * from article where id not in (select top a*(b-1) id from article)

posted @ 2015-11-19 20:13  roysatm  阅读(255)  评论(0编辑  收藏  举报