每页显示20条数据,给你关键的SQL语句例子,其他的将查询结果通过listctrl网上例子一把抓,就不给了。
第一页
select top 20 student_num,student_name,student_gender from student where student_num not in
(select top 0 student_num,student_name,student_gender from student)
第N页
select top 20 student_num,student_name,student_gender from student where student_num not in
(select top 20*(N-1) student_num,student_name,student_gender from student)