我在查询结果集中添加了一个索引号行,但它在这里不起作用的是查询
SELECT RevisionId, FileSubmitId,UpdateTimeA, number = ROW_NUMBER() OVER (ORDER BY UpdateTimeA)
FROM Revisions
WHERE FileSubmitId='20140512212019387'
ORDER BY UpdateTimeA DESC;
这是错误
我正在使用MS Access 2010
当我删除此部分时,查询正常工作
number = ROW_NUMBER() OVER (ORDER BY UpdateTimeA)
答案 0 :(得分:0)
With CTE As (
SELECT RevisionId, FileSubmitId,UpdateTimeA, ROW_NUMBER() OVER (ORDER BY UpdateTimeA) number
FROM Revisions
WHERE FileSubmitId='20140512212019387'
)
Select * From CTE ORDER BY UpdateTimeA DESC