当前位置:网站首页>8.分页查询
8.分页查询
2022-04-23 06:23:00 【阿呆布衣酷】
8.分页查询
1.查询工资的前3名
select * from emp
order by sal desc
limit 0,3;
select * from emp
order by sal desc
limit 3;
2.查询工资大于1000的第4到8个用户
select * from emp where sal>1000 limit 3,5;
3.查询工资最低的用户
select * from emp order by sal limit 1;
4.每页显示4条(pageSize每页大小),显示第3页的内容(pageIndex页码)
select * from emp
limit (pageIndex-1)*pageSize,pageSize;
版权声明
本文为[阿呆布衣酷]所创,转载请带上原文链接,感谢
https://adbycool.blog.csdn.net/article/details/124347833
边栏推荐
- 海康威视面经总结
- 数据分析学习(一)数据分析和Numpy基础
- MVCC(多版本并发控制)
- 按需引入vant组件
- 5.SQL99标准:内连接和外连接
- Meishe helps Baidu "Duka editing" to make knowledge creation easier
- Solution of emergency communication system for major security incidents
- Applet newline character \ nfailure problem resolution - Daily pit stepping
- el-table 横向滚动条固定在可视窗口底部
- Machine vision series (02) -- tensorflow2 3 + win10 + GPU installation
猜你喜欢
Urban emergency management - urban emergency communication command and dispatching system
How does the public and Private Integrated walkie talkie realize cooperative work under multi-mode communication?
Meishe helps Baidu "Duka editing" to make knowledge creation easier
Discussion on the outline of short video technology
keytool: command not found
Machine vision series (01) -- Overview
vim+ctags+cscpope开发环境搭建指南
ES6之箭头函数细谈
The people of Beifeng have been taking action
反思 | 事件总线的局限性,组件化开发流程中通信机制的设计与实现
随机推荐
菜菜的刷题日记 | 蓝桥杯 — 十六进制转八进制(纯手撕版)附进制转换笔记
[LNOI2014]LCA——树链剖分——多点LCA深度和问题
通用型冒泡、选择、插入、希尔、快速排序的代码实现
莫比乌斯反演
Wireless communication system for large-scale sports events
npm 安装踩坑
页面动态显示时间(升级版)
学习笔记6-几种深度学习卷积神经网络的总结
P1446 [HNOI2008]Cards(Burnside定理+dp计数)
使用el-popconfirm和el-backtop不生效
P1390 公约数的和(莫比乌斯反演)
Take you to travel in space, and American photography technology provides comprehensive technical support for aerospace creative applet
Object.create()原理,Object.create()规范,手写Object.create(),Object.create()用法
LATEX公式注意事项
特殊成员与魔法方法
海康威视面经总结
可视化之路(十二)Collection类详解
SDC intelligent communication patrol management system of Nanfang investment building
简单易懂的子集dp
状态同步与帧同步