String sql = "select top " + pageSize
+ " * from student where stud_id not in(select top "
+ (page - 1) * pageSize + " stud_id from student)";
//pageSize为分页的大小
//page为当前的页号
//1.将所有的记录减去当前页page以前的记录从而得到一个差集s
//2.再从s中选取前pageSize条。
String sql = "select top " + pageSize
+ " * from student where stud_id not in(select top "
+ (page - 1) * pageSize + " stud_id from student)";
//pageSize为分页的大小
//page为当前的页号
//1.将所有的记录减去当前页page以前的记录从而得到一个差集s
//2.再从s中选取前pageSize条。