Updating “field by field”: copying data from one table to another
up vote
1
down vote
favorite
I have two tables, which are basically the same except the name: one for actual data second one for backup. And what I want to do is to update fields in first one using the content from the other one - checking field by field based on ID. Let's say it should looks like this: Get the first row. FIRST_TABLE(ID_FT, NAME_FT) and SECOND_TABLE(ID_ST, NAME_ST), If ID_FT == ID_ST then NAME_FT = NAME_ST, Get the next row, Go to point 3 and loop until end of the FIRST_TABLE. What queries should I use? How iterating through the table in ORACLE/SQL looks like?
sql oracle
share | improve this question
asked Nov 10 at 17:50
...