SQL:为什么这个ROWNUMBER函数不起作用?

时间:2010-10-11 20:54:25

标签: sql sql-server

SELECT  DateErrored
FROM     (SELECT Category, ROW_NUMBER  (Partition by dateerrored ORDER BY category DESC)AS Row FROM AspErrors)
            AS LogWithRowNumbers
WHERE  Row >= 1 AND Row <= 10

1 个答案:

答案 0 :(得分:9)

ROW_NUMBER更改为ROW_NUMBER() OVER

Link to documentation