limit

select * limit a,b

a:查询的开始条数

b:之后几条

数据库索引从0开始,第一条记录索引是0,

0,2 从第0条开始,算上这一条,总共查两条

猜你喜欢

转载自blog.csdn.net/qq_33835009/article/details/85173819