SQL分页查询
来源:互联网 发布:淘宝店铺背景图 编辑:程序博客网 时间:2024/05/01 13:39
查询数据显示第2页(其中每页有4条数据),Student为一个表,学号是该表其中的列名
第一:
select top 4 * from Student where 学号 not in
(select top (1*4) 学号 from Student order by 学号) order by 学号
第二:
with coun as(select row_number() over(order by 学号)as row_number,* from Student)
select * from coun where row_number between (1*4) and (1*4+4) order by 学号
第三:
select top 4 * from(select top (2*4)* from Student order by 学号 desc)a order by 学号 desc
- SQL分页查询优化
- 一个分页查询sql
- SQL分页数据查询
- Sql分页查询
- 分页查询SQL语句
- sql分页查询语句
- sql分页查询
- SQL分页查询
- 数据库分页查询SQL
- SQL分页查询
- SQL 分页支持查询
- 分页SQL查询语句
- SQL 分页查询效率
- SQL的分页查询
- 分页查询SQL语句
- SQL 分页查询
- SQL 简单分页查询
- Sql分页查询
- Android--入门---5---(android emulator 介绍)
- freescale R10 ipu lib 分析 - ipu_capture.c
- google map 开发(1)- 新建一个地图及标记
- sdf
- Android--入门---3---(Android 系统的使用&开发前的设置)
- SQL分页查询
- 巴西龟
- POJ-1094 Sorting It All Out 解题报告
- Android--入门---4---(开始&运行一个android application)
- 什么是数组?第一课《认识数组》
- VISUAL SVN安装 及客户端使用
- 高端人才必看,生意人必读
- tmux 配置 & 使用
- Android--入门---6---(Android 开发的目录结构剖析)