skip to Main Content

ERROR 1411 in MySQL: Incorrect datetime value

I am trying to insert dates along with other data into my SQL table: insert into weather values (1, 'London', -1, str_to_date('2021-01-01','y%-m%-d%')), (2, 'London', -2, str_to_date('2021-01-02','y%-m%-d%')), (3, 'London', 4, str_to_date('2021-01-03','y%-m%-d%')), but I am getting the message below: Error Code: 1411.…

VIEW QUESTION
Back To Top
Search