asp+access 网页希望通过条件查询 获取第6-10条记录,外加条件语句比如某某学校3年级5班,有30名学生,按照语文考试从高到低排序,我需要获取到第五名到第十名记录,并且条件是女生,请问,如何编写,请赐教,多谢。
我自己写的老报错:sql="select top 5 * from (select top 10 * from class where xb='F' order by id desc ) order by id desc"-->
给个别名,用别名.id的方式