sql查询从第二条开始
2009-10-19 10:53
197 查看
从数据库中查询前9条,从第二条输出
select top 9 * from biao where ID not in (select top 1 ID from biao)
那么以此类推
从数据库中查询前9条,从第三条输出
select top 9 * from biao where ID not in (select top 3 ID from biao)
从数据库中查询前9条,从第四条输出
select top 9 * from biao where ID not in (select top 4 ID from biao)
select top 9 * from biao where ID not in (select top 1 ID from biao)
那么以此类推
从数据库中查询前9条,从第三条输出
select top 9 * from biao where ID not in (select top 3 ID from biao)
从数据库中查询前9条,从第四条输出
select top 9 * from biao where ID not in (select top 4 ID from biao)
相关文章推荐
- 编写 SQL 查询:让我们从基础知识开始
- oracel sql语句:查询时间段中开始时间与结束时间相同的数据
- SQL从第二条开始取记录
- SQL从第二条开始取记录
- sql语句查询出表里符合条件的第二条记录的方法
- SQL 数据库 学习 015 开始学习查询 查询综述
- 使用sql查询生成开始到结束日期之间的所有日期
- SQL查询某列以B或C或D或F开始且第三个字符为"a"的数据信息
- sql语句查询出表里的第二条、第三条记录(附加多个条件)
- SQL中从库开始查询(操作)的语句(原来是这样呀!!!!)
- sql语句查询出表里符合条件的第二条记录的方法
- SQL查询某列以B或C或D或F开始且第三个字符为"a"的数据信息
- 编写 SQL 查询:让我们从基础知识开始
- SQL查询 addScalar()或addEntity()
- 一步一步学Linq to sql(四):查询句法
- ORACLE SQL 查询练手
- Linq to sql(四):查询句法(二)
- SQL分页查询
- hibernate查询SQL语句返回自定义实体对象
- SQL查询重复记录的办法