In MySQL, How do I copy a FIELD with all RECORDS from TABLE1
to TABLE2
which corresponds to a primary key ie: EMPLOYEE no.
?
Insert into Delivery (DeliveredDate, appid, DownloadSize, UploadSize) select Delivered, Appid, DownloadSize,UploadSize from Delivery_Summary;
The query for copy data from one table to another is:
Insert into table2 (field1, field2) select field1, field2 from table1
If you want to copy only selected values, then use where clause in query
Insert into table2 (field1, field2) select field1, field2 from table1 where field1=condition