当一个数据库的查询数据量偏大的时候,最好不要直接使用limit,而是先获取表格的标识列或唯一列(一般是ID),再使用limit来获取数据,效果会好许多
select * from table where id>=(
select id from table order by id limit 10000,1
) limit 10;