mysql是用limit进行查询
sql server中是用top进行查询,
select top N * from tablename,这个top是可以嵌套的,例如
select top 5 * from tablename where id not in(select top 5 * from tablename)
这里我们的数组5可以用变量来代替以实现分页功能
"select top"+" pageSize"+" * from tablename where id not in(select top +"pageSize*(pagenow-1)"+ * from tablename)"
再给项目更换数据库时一定要注意这个地方