Link to home
Start Free TrialLog in
Avatar of mahjag
mahjag

asked on

update table set column and select from another table to udpate multiple columns

I have a update statement
update test
set (col1, col2) = (
                                  select (col1,col2) from tableA
                             )

did not work - Ora - 0907 - missing right parentheseis
ASKER CERTIFIED SOLUTION
Avatar of Raju Srivatsavaye
Raju Srivatsavaye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mahjag
mahjag

ASKER

The above query to update is not working and I am getting "single row subquery returns more than a row" error in production , I saw that it was kind of working in dev but I am now in prod and it does not - can in anyway you can help me -