当前位置:网站首页>Database SQL language 03 sorting and paging
Database SQL language 03 sorting and paging
2022-06-30 05:22:00 【Chao Ge 1986】
Sorting and paging
grammar : ORDER BY
ORDER BY Statement to sort the result set according to the specified column .
ORDER BY Statement defaults to ASC Sort records in ascending order .
If you want to sort records in descending order , have access to DESC keyword .
grammar : SELECT * FROM table LIMIT [offset,] rows | rows OFFSET offset
benefits : ( User experience , Network transmission , Query pressure )
deduction :
first page : limit 0,5
The second page : limit 5,5
The third page : limit 10,5
......
The first N page : limit (pageNo-1)*pageSzie,pageSzie
[pageNo: Page number ,pageSize: Number of single page displays ]
The Department is required to be 30 Information about the third highest paid person :

Our key is to get empno = 7844 sal =1500 This employee :


2,1 Indicates the third , Take the back 1 individual , among 2 Indicates the third , from 0 Start the first one :
边栏推荐
- Database base (Study & review for self use)
- Responsive flow layout
- Pyinstaller flash back
- Wechat applet training 2
- Access is denied encountered when vfpbs calls excel under IIS
- GoLand No Tests Were Run : 不能使用 fmt.Printf() <BUG>
- Chapter 12 pipeline monitoring of OpenGL super classic (version 7)
- Vfpbs uploads excel and saves MSSQL to the database
- Untiy3d controls scene screenshots through external JSON files
- Installation and getting started with pytoch
猜你喜欢

旋转框目标检测mmrotate v0.3.1入门

Baiwen.com 7 days Internet of things smart home learning experience punch in the third day

Unity + hololens publishing settings

Pit of smoothstep node in shadergraph

Unity3d packaging and publishing APK process

Why can transformer break into the CV world and kill CNN?

Database base (Study & review for self use)

Some problems encountered in unity steamvr

Unity + hololens2 performance test

Terminal convenient SSH connection
随机推荐
Unity 3D model operation and UI conflict Scrollview
终端便捷ssh(免密)连接
Assembly learning tutorial: accessing memory (3)
Unity2019.3.8f1 development environment configuration of hololens2
Postman 做测试的 6 个常见问题
How to judge the quality of network transformer? What symptom is network filter transformer broken?
ParticleSystem in the official Manual of unity_ Collision module
Responsive flow layout
14x1.5cm竖向标签有点难,VFP调用BarTender来打印
【VCS+Verdi联合仿真】~ 以计数器为例
Set a plane to camera viewport
【 VCS + Verdi joint simulation】 ~ Taking Counter as an Example
Chapter 10 of OpenGL super classic (7th Edition) calculation shader
Revit secondary development - use panel function without opening the project
Detailed explanation of the loss module of mmdet
Pytorch的安装以及入门使用
Go Land no tests were Run: FMT cannot be used. Printf () & lt; BUG & gt;
After reading who moved my cheese
Bessel curve with n control points
Unity dotween plug-in description