If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Location: The extremely Royal borough of Kensington, London
Posts: 778
Hey,
update table t1
set e = (
select t2.d
from table t2
where t1.rowid = t2.rowid);
A more obvious query is to try
update table
set e = (select b from table)
This will not work with the returned error message :
ORA-01427: single-row subquery returns more than one row
This essentially means that for each single row you are trying to update the value e to the results of a query that returns > 1 row.
Cheers.
__________________
Bessie Braddock: Winston, you are drunk!
Churchill: And Madam, you are ugly. And tomorrow, I'll be sober, and you will still be ugly.