先定位偏移位置的 id,然后往后查询,这种方式适用于 id 递增的情况。
select
*
from
orders_history
where
type=8
and
id>=(
id
type=8 limit 100000,1) limit 100;