MySQL limit分页
基本用法
SELECT * FROM tableName LIMIT [OFFSET,]rows | rows OFFSET offset;
1个参数,表示记录数
SELECT * FROM user LIMIT 5;
2个参数,第一个参数表示offset,第二个参数为记录数
SELECT * FROM user LIMIT 2 OFFSET 3;
SELECT * FROM user LIMIT 3,2;
SELECT * FROM user LIMIT 3,-1;