mfc 使用odbc操作数据集,在对话框中的listControl控件上分页显示。有实例的或者有代码的发送以下

2025-04-26 05:59:15
推荐回答(1个)
回答1:

每页显示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)