1. 程式人生 > >如何查詢出資料庫表中第21條到第30條記錄?

如何查詢出資料庫表中第21條到第30條記錄?

select top 10 * from (select top 30 * from A order by ID) order by ID desc 
select top 10 * from A   where  ID not in (select  ID from top  20 from  A)