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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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

794342
thanks - initial testing seems to work OK.
(I had to add a panel, to be able to set minimum size to the panel)
1 - 1

Post Details

Added on Jun 24 2019
6 comments
1,718 views