0
這是我的MSSQL的查詢任何人都可以幫助我將這個MSSQL查詢轉換爲ORACLE嗎?
UPDATE YT
SET POSITION = RN
FROM (
SELECT ROW_NUMBER() OVER (PARTITION BY PARENTID ORDER BY ID) - 1 RN
FROM CONVERTED
) YT
,這是我在嘗試將其轉換爲甲骨文
UPDATE CONVERTED
SET POSITION = (SELECT ROW_NUMBER() OVER (PARTITION BY PARENTID ORDER BY ID) - 1 RN
FROM CONVERTED
);
Ufortunately我得到這個錯誤
SQL Error: ORA-01427: single-row subquery returns more than one row
01427. 00000 - "single-row subquery returns more than one row"
誰能幫助?
完美謝謝 – totalitarian