二种sql分页查询语句分享
2014-02-20 00:00
561 查看
根据题意理解:
本质就是写分页查询:
每页条数:10条;
当前页码:4页;
本质就是写分页查询:
每页条数:10条;
当前页码:4页;
//第一种: select * from (select ROW_NUMBER() over(order by Id asc) as num,* from UserInfo)as u where u.num between 10*(4-1)+1 and 10*4 //第二种: select top 10 * from UserInfo where Id not in (select top (10*3) id from UserInfo order by Id) order by Id
相关文章推荐
- 二种sql分页查询语句分享
- 常用SQL语句查询分享
- Entity Framework 使用sql语句分页(查询视图)
- C#通过SQL语句查询结果分页不用GridView的实现
- Oracle学习笔记20150822分页查询sql语句分类和集合运算
- 关于SQL Server SQL语句查询分页数据的解决方案
- 简单的sql server 2005 分页查询sql语句
- SQL分页查询语句
- SqlServer2005高效分页sql查询语句汇总
- 在SQL Server中通过SQL语句实现分页查询
- SQL分页查询语句分析
- Mybatis最入门---分页查询(逻辑分页与SQL语句分页)
- EF执行SQL分页查询语句
- Oracle和MySQL分页查询SQL语句
- Mybatis最入门---分页查询(逻辑分页与SQL语句分页)
- 分享三种高效率SQL语句分页方法
- 分页用到的子查询sql语句
- 分页查询一定范围内的SQL语句
- sql语句转化为分页查询的一种实现
- SQL语句分页查询