I am trying to update a datetime which is in String format YYYYMMDDHHMMSSZ
into YYYY-MM-DD HH:MM:SS
.
I was trying to run a query: Update consolidated_table SET createtimestamp_E=DATE_FORMAT(createtimestamp_E, '%Y-%m-%d %T')
but getting:
Error Code: 1292`. Incorrect datetime value: ''
I tried inserting the csv file in datetime format, but that didn't work.
So I had to upload it in String format and now I'm trying to convert the string into date format, but in vein.