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!

Update Statement Missing 'SET' keyword error

woof777Jun 13 2013 — edited Jun 13 2013

Hi,

I have an update statement that is supposed to update a table from another table based on one condition.

------------------------------------------------------------------------

UPDATE TABLE_1 -- The Table to be updated 

FROM TABLE_2 T  -- The table with the info with an Alias 'T'

SET SERVICE_ID_CLEANSED = T.SERVICE_ID_CLEANSED  -- Enter the value from the info table

WHERE SERVICE_ID_1 = T.SERVICE_ID_DIRTY;  --- Based on this condition

-----------------------------------------------------------------------

I get a 'Missing SET Keyword' error.

The sites I've visited advise that the issue may be that the 'SET' keyword should be after the Update table name, but I haven't been able to make any changes work ...

So, I need to find out why I get the Missing SET keyword error & fix it.

Any suggestions about why this is wrong??

Thanks

 

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2013
Added on Jun 13 2013
10 comments
4,703 views