SQL分页多主键
正常情况下(要求not in字段唯一)
select top pageSize * form table where id not in (select top pageSize*page-pageSize id from table order by id)order by id
如果为联合主键
select top pageSize * form table where id1+id2 not in (select top pageSize*page-pageSize id1+id2 from table order by id)order by id