Access数据库分页查询,效率sql语句(mysql数据库分页查询sql语句)

如题所述

in的效率太低,不能利用索引,建议使用:

selecttop每页数量*from表whereid<(selecttop1max(id)from(selecttop(页数-1)*每页数量from表orderbyid,name))或

selecttop每页数量*from表whereid<(此处根据顺序和逆序)

温馨提示:答案为网友推荐,仅供参考
相似回答