Whenever I try to input data into my tblorder I get the error message #1054 - Unknown column \'FK_Customer_ID\' in \'field list\'. I have tried breaking my code down and in doi
You have an error in your OrderQuantity column. It is named "OrderQuantity" in the INSERT statement and "OrderQantity" in the table definition.
Also, I don't think you can use NOW()
as default value in OrderDate. Try to use the following:
OrderDate TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
Example Fiddle
I had this error aswell.
I am working in mysql workbench. When giving the values they have to be inside "". That solved it for me.