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!

How can I Update query by joining multiple tables.

LuKKaApr 9 2014 — edited Apr 9 2014

Hi team ,

I want to update a column of TABLE 1 , but it should join with TABLE 2 . based some condition it should update .

I have created as below . But it is not working .

Can you please suggest me how can I do it ?

UPDATE Table1
SET
Table1.Column1 = 'name'
FROM
Table1 T1, Table2 T2
WHERE T1
.id = T2.id
and T1.name = T2.Name

And T1.id = UPDATE Table1
  SET
Table1.Column1 = 'name'
FROM
Table1 T1, Table2 T2
WHERE T1
.id = T2.id
and T1.id = '100';


This post has been answered by KarK on Apr 9 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 7 2014
Added on Apr 9 2014
2 comments
1,697 views