如何搜索数据库中第5条到第10条的数据
数据库a中有50条记录,我想要的是第5条到第10条的记录
参考答案:select * from (selct top 5 * from (select top 10 * from table1 order by id) a order by id desc) b order by id
数据库a中有50条记录,我想要的是第5条到第10条的记录
参考答案:select * from (selct top 5 * from (select top 10 * from table1 order by id) a order by id desc) b order by id