Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01427: single-row subquery returns more than one row

G.YJun 24 2019 — edited Jun 24 2019

UPDATE INV.MENU_LIST A

SET A.SRNO = (SELECT ROW_NUMBER() OVER (PARTITION BY GRP_CODE ORDER BY MENU_ID) FROM INV.MENU_LIST)

WHERE A.SRNO IS NULL;

Error starting at line : 12 in command -

UPDATE INV.MENU_LIST A

SET A.SRNO = (SELECT ROW_NUMBER() OVER (PARTITION BY GRP_CODE ORDER BY MENU_ID) FROM INV.MENU_LIST)

WHERE grp_code = 1

Error report -

ORA-01427: single-row subquery returns more than one row

This post has been answered by Cookiemonster76 on Jun 24 2019
Jump to Answer
Comments
Post Details
Added on Jun 24 2019
6 comments
1,892 views