Computer Science, asked by RitikaDoshi34161, 1 year ago

MySQL join two tables?

Answers

Answered by Sanjeevliv
0

You can try:

INSERT IGNORE

INTO table_1

SELECT *

FROM table_2

;

which allows those rows in table_1 to supersede those in table_2 that have a matching primary key, while still inserting rows with new primary keys.

Alternatively,

REPLACE

INTO table_1

SELECT *

FROM table_2

;

#SRKfan

Similar questions