当前位置:网站首页>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 :
边栏推荐
- Set a plane to camera viewport
- Unity scroll view element drag and drop to automatically adsorb centering and card effect
- Another download address for typro
- Unity shortcut key
- Does the tester need to analyze the cause of the bug?
- Chapter 10 of OpenGL super classic (7th Edition) calculation shader
- C # three ways to obtain web page content
- Untiy3d controls scene screenshots through external JSON files
- Rotation, translation and scaling of unity VR objects
- Nestjs introduction and environment construction
猜你喜欢
How to judge the quality of network transformer? What symptom is network filter transformer broken?
Rotation, translation and scaling of unity VR objects
终端便捷ssh(免密)连接
Unityshader learning notes - Basic Attributes
Pit of smoothstep node in shadergraph
PWN Introduction (2) stack overflow Foundation
14x1.5cm vertical label is a little difficult, VFP calls bartender to print
Unity shader flat shadow
图扑软件基于钻孔数据的三维地质模型可视化
[notes] unity Scrollview button page turning
随机推荐
Unity mobile end sliding screen rotation
RedisTemplate 常用方法汇总
Singleton mode in unity
[typescript] experimentaldecorators of vscode stepping pit
Installation and getting started with pytoch
Unity scroll view element drag and drop to automatically adsorb centering and card effect
Unity multiple UI page turning left and right
[typescript] cannot redeclare block range variables
QT connecting external libraries
MinGW-w64下载文件失败the file has been downloaded incorrectly!
GoLand No Tests Were Run : 不能使用 fmt.Printf() <BUG>
[notes] unity webgl input Chinese
[notes] unity Scrollview button page turning
Configuration and use of controllers and routes in nestjs
14x1.5cm竖向标签有点难,VFP调用BarTender来打印
Unity packaging and publishing webgl error reason exception: failed building webgl player
Nestjs introduction and environment construction
【VCS+Verdi聯合仿真】~ 以計數器為例
Unity3d position the model, rotate, drag and zoom around the model to obtain the center point of the model
[typescript] defines the return value type of promise