1
嗨,大家好我需要重寫下面的SQL查詢使用Linq到實體。不幸的是我沒有很多使用Linq的經驗。請幫我重寫使用Linq到實體的SQL查詢
With TempTableName AS
(SELECT [ColumnName],
[ColumnName2],
[ColumnName3],
[ColumnName4],
ROW_NUMBER() OVER (order by ColumnName desc) as RowNumber from TableName)
SELECT
[ColumnName],
[ColumnName2],
[ColumnName3],
[ColumnName4]
FROM TempTableName WHERE ROWNUMBER
Between 10 and 100
這對我有用。謝謝你快速和工作的答案 – German 2010-07-12 13:39:34