I want to copy one table to another.
For example, I have a Data(ID, time, serial_number...)
table Data(ID, time, serial_number...)
, and I have Temp_data(ID, time, serial_number...)
How to copy all elements without a primary key ( ID
).
I use MYSQL, I tried INSERT INTO Data SELECT * FROM Temp_data;
The problem is the primary key. both tables already have values, and I need everything to copy except ID.
source share