In your insert statement you have a 2 commas near the end of the statement 740, ,12);. Basically, the MySQL expects to have a value between those empty commas.
change this
INSERT INTO ACUPAN VALUES (30012,'AVILES', 'KATE', 'HRD' , 740, ,12);
into this
INSERT INTO ACUPAN VALUES (30012, 'AVILES', 'KATE', 'HRD', 740, 0, 12);
-- ^ only one comma here
I put 0 as the value of NOMOFWORK column because its type is INT and it doesn’t have a default value. You should put the right value instead of 0.
2
Answers
In your insert statement you have a 2 commas near the end of the statement
740, ,12);
. Basically, theMySQL
expects to have a value between those empty commas.change this
into this
You should use
OR
You can’t have an empty value between comma’s.
You can define its empty by putting
NULL
or0
in case of aninteger
or""
in case of astring