select * from delivery_trade_query where merchant_id = 4 order by id limit 1000000,100; select * from delivery_trade_query d where d.merchant_id = 4 and d.id >= (select id from delivery_trade_query where merchant_id = 4 order by id limit 1000000,1) order by id limit 100;