(MYSQL分页)每页5条
1 0 第一页 OFFSET = 页码-1乘以每页条数(1 - 1 * 5) = 0 * 5 = 0
2 5 第二页 OFFSET = 页码-1乘以每页条数(2 - 1 * 5) = 1 * 5 = 5
3 10 第二页 OFFSET = 页码-1 乘以每页条数(3 - 1 * 5) = 2 * 5 = 10
(MYSQL分页)每页5条
1 0 第一页 OFFSET = 页码-1乘以每页条数(1 - 1 * 5) = 0 * 5 = 0
2 5 第二页 OFFSET = 页码-1乘以每页条数(2 - 1 * 5) = 1 * 5 = 5
3 10 第二页 OFFSET = 页码-1 乘以每页条数(3 - 1 * 5) = 2 * 5 = 10
本文标题:Mysql LIMIT OFFSET 分页表达式
本文链接:https://www.haomeiwen.com/subject/ixjmzxtx.html
网友评论