本網誌部分來源為轉貼,若有侵權的情況,請告知版主,會即時處理,謝謝
123456789101112131415161718
SELECT IDENTITY(INT,1,1) AS ROWNUMBER ,*INTO #TMPTABLEFROM TABLENAMEORDER BYID;暫存TABLE完成 SELECT *FROM #TMPTABLEWHERE ROWNUMBER BETWEEN M AND N;
1234567891011121314
SELECT *FROM ( SELECT TOP 10 * FROM (SELECT TOP 30 * FROM dbo.JavaRanch ORDER BY ID )AS B ORDER BY ID DESC) AS A ORDER BY ID ASC
張貼留言
沒有留言:
張貼留言