当前位置:网站首页>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
边栏推荐
猜你喜欢
可视化常见问题解决方案(八)共享绘图区域问题解决方案
Authorization+Token+JWT
记录一些npm 有关的问题(杂乱记录)
USO technology was invited to share the technical framework and challenges of AI synthetic virtual characters at lvson2020 conference
Emergency air space integrated communication system scheme of Guangxi Power Grid
DMR system solution of Kaiyuan MINGTING hotel of Fengqiao University
# 可视化常见绘图(二)折线图
数论分块(整除分块)
记录一下使用v-print中遇到的问题
quill-editor图片缩放、在一个页面使用多个富文本框、quill-editor上传图片地址为服务器地址
随机推荐
[hdu6868]Absolute Math(推式子+莫比乌斯反演)
Solution of emergency communication system for major security incidents
Discussion on arrow function of ES6
Emergency communication system for flood control and disaster relief
[COCI] Vještica (子集dp)
Flexible blind patch of ad hoc network | Beifeng oil and gas field survey solution
kaggle-房价预测实战
Patrol inspection intercom communication system in power industry
Machine vision series (01) -- Overview
关于'enum'枚举类型以及结构体的问题。
Mysql 数据库从设计上的优化
Nacos/sentinel网关限流和分组 (代码)
remote: Support for password authentication was removed on August 13, 2021.
Educational Codeforces Round 81 (Rated for Div. 2)
What is a closure?
[牛客挑战赛47]C.条件 (bitset加速floyd)
[Educational Codeforces Round 80] 解题报告
按需引入vant组件
数据分析学习(一)数据分析和Numpy基础
null和undefined的区别