SqlServer 分页语句

select StuID ,StuNo,StuName,Age,Sex, ClassName ClassName from
(select *, row_number() over (order by StuID asc) as number from StudentInfo) t ,
ClassInfo c where t.ClassID = c.ClassID and t.number between @startindex and @endindex

表1==ClassInfo
表2==StudentInfo

变量:@startindex 和 @endindex

Oracle 分页语句

select * from (select id, name,
producttype, price, picture, isout, mark,
adddate,rownum rn from products) temp
where temp.rn>=:startIndex and temp.rn<=:endIndex

表==Products

最新文章

  1. Java NIO2:缓冲区
  2. Linux踢出其他正在SSH登陆用户
  3. 形象化的spring 依赖注入原理
  4. SQL Server性能优化(5)表设计时的注意事项
  5. 完成端口(IOCP)怎么判断某个连接是否断开
  6. linux c 系统报错
  7. 定义一个栈的数据结构,要求实现一个min函数,每次能够得到栈的最小值,并且要求Min的时间复杂度为O(1)
  8. CC 3-Palindromes(manacher)
  9. javascript检测当前浏览器是否为微信浏览器
  10. input 上传图片显示预览、调用摄像头,ios和Android的兼容性解决
  11. HTML5视频播放插件Video.js使用详解
  12. Atitit.mysql 5.0 5.5 &#160;5.6 5.7 &#160;新特性 新功能
  13. 【web前端】移动端控制台插件,手机端页面查看相关页面控制台信息
  14. Kafka.net使用编程入门(三)
  15. eclipse项目环境搭建(做了好多遍,老是忘记,以此文帮助记忆)
  16. Flume 多个agent串联
  17. Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com
  18. elasticsearch同步mongodb--mongo connector的使用
  19. mysql优化之explain备忘笔记
  20. macOS Sierra 10.12版本 显示隐藏文件

热门文章

  1. jquery笔记(效果)
  2. header元素
  3. 优化WPF 3D性能
  4. Extjs用到的一些有用的网页的集锦
  5. Google Chrome开发者工具
  6. Haskell 笔记 ②
  7. Leetcode Sum Root to Leaf Numbers
  8. ACM Longest Repeated Sequence
  9. 【POJ3667】Hotel
  10. Android -- 服务组件的使用(1)