page 表示页码
pagesize 表示每页的显示数量
conditon 表示一些条件
SELECT sql_no_cache *FROM table WHERE id>=(SELECTsql_no_cache id FROM table where conditon ORDER BY id DESC LIMIT 126380,1) limit 20;
利用索引优化分页查询
pagesize 表示每页的显示数量
conditon 表示一些条件
SELECT sql_no_cache *FROM table WHERE id>=(SELECTsql_no_cache id FROM table where conditon ORDER BY id DESC LIMIT 126380,1) limit 20;
利用索引优化分页查询