分頁SQL語句

1、 select top 每頁顯示的記錄數 * from topic where id not in (select top (當前的頁數-1)×每頁顯示的記錄數 id from topic order by id desc) order by id desc 2、 SELECT * FROM temptbl where Row between @startIndex and @endIndex
相關文章
相關標籤/搜索