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 to update the table contents for the below condition?

2766124Mar 23 2015 — edited Mar 23 2015

Hi Guys,

I have a custom table which needs to be updated from a source table "abc";

I have to update 8 fields from "abc" based on five keys matching between the custom record and abc record

below is the syntax that I an following please let me know the efficient way of doing this.

I am getting error for the below syntax.I think "FROM" keyword should not be use rgt???

update custom table a

set a.field1=b.field1,a.field2=b.field2,a.field3=b.field3

from abc b

where value='05'

This post has been answered by Frank Kulash on Mar 23 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2015
Added on Mar 23 2015
2 comments
663 views