SQL SERVER 2012/ 2014 分頁,用 OFFSET,FETCH NEXT改寫ROW_NUMBER的用法

寫法: 僞裝有個表Shop,其中有一列ShopName,取100000到100050條數據。spa ROW_NUMBER 的寫法code SELECT * FROM ( SELECT ShopName , ROW_NUMBER() OVER(ORDER BY ShopName) as R FROM Shop ) t WHERE R>100000 AND R<=100050 OFFSET,F
相關文章
相關標籤/搜索