sql 分頁查詢

sqlserver 分頁查詢: sql

select top 5 * from file_info where fileId not in
(select top 0 fileId from file_info order by pubTime desc) order by pubTime desc

 

oracle 分頁查詢: oracle

 

 

select * from   
(  
select A.*, rownum RN   
from (select * from askInfo) A   
where rownum <= 40  
)  
where RN >= 21
 
相關文章
相關標籤/搜索