--用这个方法优化,explain扫描的的行数比直接用limit扫描的行数多二分之一
select xx from table where ID >=(select max(ID) from (select xxxx INNER JOIN xx where xxxx limit m,1)) limit 10
--用这个方法优化,explain扫描的的行数比直接用limit扫描的行数多二分之一
select xx from table where ID >=(select max(ID) from (select xxxx INNER JOIN xx where xxxx limit m,1)) limit 10