Last answered:

07 Apr 2020

Posted on:

06 Apr 2020

0

MySQL Triggers exercise and solution

Hello, When trying to execute the INSERT function of the following code: INSERT employees VALUES ('999904','1970-01-31','John','Johnson','M', '2025-01-01'); I receive the following error...please advise!:) :) :   0 43 09:24:11 INSERT employees VALUES('999904','1970-01-31','John','Johnson','M', '2025-01-01') Error Code: 1292. Truncated incorrect date value: '20--m,06' 0.000 sec
1 answers ( 0 marked as helpful)
Instructor
Posted on:

07 Apr 2020

0
Hi Matt! Thanks for reaching out. The error message is saying, that the date value you are trying to add is actually the following:
’20–m,06′
What this suggests is that you haven't used single quotes on both ends of the expression, but you have used a single quote ( ' ) once, and a back quote the other time ( ` ). Please make sure you're using single quotes (or double quotes) on both sides. If this doesn't resolve the problem, can you please paste the entire trigger query, so that we can look into more detail? Thank you. Hope this helps.
Best,
Martin  

Submit an answer