如题所述
in的效率太低,不能利用索引,建议使用:
selecttop每页数量*from表whereid<(selecttop1max(id)from(selecttop(页数-1)*每页数量from表orderbyid,name))或
selecttop每页数量*from表whereid<(此处根据顺序和逆序)