You can use UNION
clause, UNION
will check for duplicates and only distinct rows will be returned
SELECT * FROM table1
UNION
SELECT * FROM Table2
Edit: To store data from both table without duplicates, do this
INSERT INTO TABLE1
SELECT * FROM TABLE2 A
WHERE NOT EXISTS (SELECT 1 FROM TABLE1 X
WHERE A.NAME = X.NAME AND
A.post_code = x.post_code)
This will insert rows from table2 that do not match name, postal code from table1
Alternative is that You can also create new table and not touch table1 and table2
CREATE TABLE TABLENAME AS
SELECT * FROM table1
UNION
SELECT * FROM Table2
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…