当前位置:网站首页>MySQL paging
MySQL paging
2022-07-24 11:04:00 【theLuckyLong】
Why pagination
When we need to query too much data , When a page cannot fit , Paging can give us only partial data at one time .
Pagination principle
stay Mysql in , Paginated SQL The sentence is :
select * from table_name limit frontIndex,pageSize
Key words are used here limit, It means that the name of the query table is table_name All of , From the subscript for frontIndex The line of begins to check ( The subscript on the first line is 0), Inquire about pageSize Data .
There's another use :
select * from table_name limit pageSize
What's different from the above is , This method indicates that the subscript is 0 Start , Inquire about pageSize Data , That is, query subscript from [0,pageSize) The data of , Left closed right away
It is not difficult for us to see from the above , The essence of paging is to query some data according to the interval .
边栏推荐
- When to use obj['attribute name'] for the attribute name of an object
- read_csv 报错:‘gbk‘ codec can‘t decode byte 0xb4 in position 274: illegal multibyte sequence
- redis 缓存设置,实现类似putIfAbsent功能
- [interview: Basics 01: integer binary search]
- Logic of automatic reasoning 06 -- predicate calculus
- Talk about new congestion control
- Hongmeng's first note
- 零基础学习CANoe Panel(4)——按钮(Button )
- [interview: Basics 04: insert order]
- 【直播报名】Location Cache 模块浅析及 OCP 监控、报警详解
猜你喜欢

QT application prevents multiple opening, that is, single instance operation

Working principle and function application of frequency converter

LDR6028充电OTG直播线直播声卡音频转接器最具性价比方案

Distributed lock implementation scheme (glory collection version)

零基础学习CANoe Panel(9)—— 组合框(ComboBox)
![[class, abstraction and inheritance]](/img/eb/4c8d0c86b1320015b2ccb0289f4f00.png)
[class, abstraction and inheritance]

Docker installs 3 master and 3 slave redis clusters

The difference between Lora wireless technology and lorawan gateway module

selenium3自动化测试(这一篇就够了)——自学篇

西门子200smart自创库与说明
随机推荐
零基础学习CANoe Panel(6)—— 开关/显示控件(Switch/Indicator)
CSDN blog removes the uploaded image watermark
乘势而上,OceanBase推动数字支付精益增长
零基础学习CANoe Panel(4)——按钮(Button )
Download path of twincat3 versions
1184. 公交站间的距离 : 简单模拟题
UNIX C language POSIX thread creation, obtaining thread ID, merging thread, separating thread, terminating thread, thread comparison
【白帽子讲Web安全】第一章 我的安全世界观
Golang Li Kou leetcode 494. goals and
Real time weather API
【直播报名】Location Cache 模块浅析及 OCP 监控、报警详解
Zero basic learning canoe panel (8) -- hex/text editor
在idea中System.getProperty(“user.dir“)识别到模块(module)路径的方法:Working directory的设置
[white hat talks about web security] Chapter 1 my security world view
Development and course of Bluetooth Technology
Redis 100 million level data storage scheme hash slot partition
selenium3自动化测试(这一篇就够了)——自学篇
Analysis of Lagrange multiplier method and its duality
Why should we "go up and down" when testing left shift and right shift?
LDR6028充电OTG直播线直播声卡音频转接器最具性价比方案