总结分页SQL语句为:
select top pageSize userID,name,country from info where userID not in
(select top pageSize*(curPage - 1) userID from info where country='morocco' order by userID Desc)
and country='morocco' order by userID Desc
该分页查询方式必须依赖唯一键!!!
总结分页SQL语句为:
select top pageSize userID,name,country from info where userID not in
(select top pageSize*(curPage - 1) userID from info where country='morocco' order by userID Desc)
and country='morocco' order by userID Desc
该分页查询方式必须依赖唯一键!!!