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