WITH xyz
AS
(
SELECT col1, col2, col3, col4,
ROW_NUMBER() OVER (PARTITION BY col1, col2, col3, col4 ORDER BY col1, col2, col3, col4) as RowNumber
FROM table1
)
试图让上面的代码在 microsoft SQL 2008 中工作,但它在 '(' 附近不断给出语法错误,无法弄清楚出了什么问题