First time posting so forgive me if I omit anything. I have been struggling to Transfer data from one table to another in MySQL Community Server - GPL Version: 8.0.11. To better set the scene I import data from a MongoDB and then perform the STR_TO_DATE function and then need to move specific columns to another table one of which is one of the DATETIME data typed columns whenever I run the command/query. Here is the code :
INSERT INTO mlb.hazards
SELECT '_id', 'Source', 'CreatedTime', 'AlarmId', 'Description'
FROM mlb.incident_20181007
WHERE Description = 'ALARM ON Runway Hazard 27R 9L';
I get the return error message:
Error Code: 1292. Incorrect datetime value: 'CreatedTime' for column 'CreatedTime' at row 120 0.000 sec
I dug up the data for CreatedTime and _id for row 120 and this is what I found.
Data copied from Mysql workbench: '2018-07-03 13:35:41.421000', '621E30C4401749328035E215E680CA6A'
The columns data types are listed as DATETIME in both tables, please help me understand what I'm missing here. Thank you in advance.