请教一个分页的问题``如果ID不连续``用什么分页方法好``` 如果用.NET 默认分页我怕记录多的时候会很慢``` 但是用select top n from table where id<Maxid 的方法 又不行``因为ID不是连续的``头痛中`````````````
>>>但是用select top n from table where id<Maxid 的方法 又不行``因为ID不是连续的``remember the first and last id on each page and do//previous page select * from (select top n from table where id< firstID order by id desc) t order by idor//next page select top n from table where id> lastID order by id
如果用.NET 默认分页我怕记录多的时候会很慢```
但是用select top n from table where id<Maxid 的方法 又不行``因为ID不是连续的``头痛中`````````````
select * from (select top n from table where id< firstID order by id desc) t order by idor//next page
select top n from table where id> lastID order by id
这个方法只能
用NEXT PREVIOUS不能用
[1] [2] [3] [4] [5]....
这种分页方法```