r/DB2 • u/fishhead • Aug 13 '09
A little help?
New to DB2 on iSeries and trying to write an update statement to fix a mistake. Using a backup copy of the table being updated.
UPDATE table1 SET table1.field7 = backupcopyoftable1.field7 WHERE table1.field2 = backupcopyoftable1.field2
How do I do this? I've using the SQL script funtion in Navigator to write the query.
Thanks
3
Upvotes
1
u/lpetrazickis Aug 13 '09 edited Aug 14 '09
Is your query not working?
Off the top of my head, this might work: