Last answered:

16 Nov 2022

Posted on:

17 Feb 2022

1

Error Code: 1364. Field 'customer_id' doesn't have a default value

I've basically copy + pasted the formula and generated this error code. Any idea?

6 answers ( 0 marked as helpful)
Posted on:

17 Feb 2022

0

Disregard, simply added customer_id within the ( ) and added a dummy value.

Instructor
Posted on:

16 Mar 2022

0

Hi Christopher!

Thanks for reaching out.

Thank you very much for letting us know you can proceed with the course.

Good luck and please feel free to post another question should you encounter any difficulties. Thank you.

Best,
The 365 Team

Posted on:

02 May 2022

0

Hi!

imageI have error when I added Insert into. What should I do next ? Thank you in advance.
image

Instructor
Posted on:

27 May 2022

0

Hi Manap!
Thanks for reaching out.
Please, add a semi-colon (;) after the insert query. This is the cause of the error.

Hope this helps.
Best,
Tsvetelin

Posted on:

12 Nov 2022

0

Don't put a dummy value, the reason it's not working is you need to have dropped the previous customers' table and rewrite the column customer_id with AUTO INCREMENT so that it auto-fills the values of that customer_id section.
image.png
image.png

Instructor
Posted on:

16 Nov 2022

0

Hi Roy!
Thanks for reaching out.

Thanks for sharing this piece of information with the Community!
The cause of the error is because of the missing semi-colon (;) after the insert query.

Hope this helps.
Best,
Tsvetelin

Submit an answer