I'm trying to UNION ALL (fully join both tables (they have the same column names)) two tables together but update the second table with the result of the union.
The code below gets the result I want but doesn't update table 2 with the result
SELECT * FROM table 2
UNION ALL
SELECT * FROM table 1
For example:
table 2
Diagram name | Coloumn1 | Coloumn2 | (tons more column names)
Name1 | Data1 | Data1
Name2 | Data2 | Data2
Name3 | Data3 | Data3
table 1
Diagram name | Coloumn1 | Coloumn2 | (tons more column names)
Name4 | Data4 | Data4
Name5 | Data5 | Data5
Name6 | Data6 | Data6
End result (that I want table 2 to look like)
Diagram name | Data1 | Data2 | (tons more column names)
Name1 | Data1 | Data1
Name2 | Data2 | Data2
Name3 | Data3 | Data3
Name4 | Data4 | Data4
Name5 | Data5 | Data5
Name6 | Data6 | Data6