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 (in update)

Dev. MusbahJul 15 2012 — edited Mar 29 2013
Hi All,
I'm using a code like this to update some values:

update tableA a set a.Col1 =
(select b.Col2 from tableB b where a.id=b.id)
where a.Col1 is null

But it gives me this error:
single-row subquery returns more than one row
How to solve it Plz?

Note:
I'm using Oracle DB 10g R2
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 26 2013
Added on Jul 15 2012
12 comments
22,620 views