Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 PDW 中将使用什么来代替身份,或者是否有任何其他列可以用来代替并行数据仓库中的身份列,或者如何生成顺序增加的列。
Try using ROW_NUMBER() OVER (ORDER BY (SELECT 1)) + (SELECT MAX(ID) FROM dbo.TheTable)
ROW_NUMBER() OVER (ORDER BY (SELECT 1)) + (SELECT MAX(ID) FROM dbo.TheTable)