I think this will not work, because the number of values ββis less than the number of columns in your table. You need to specify the column name according to the number of your values.
INSERT INTO incomeCalc VALUES (3, 75, 6, 25, 18.50) // error // the only way this will work is when you have only 5 columns in // your table but in your case you have 7 that is why it will not work
he should be
INSERT INTO incomeCalc(specify columns here to the values bound to) VALUES (3, 75, 6, 25, 18.50)
w3School: (INSERT)
You can write an INSERT INTO statement in two forms.
The first form does not specify the names of the columns into which the data will be inserted, only their values:
INSERT INTO table_name VALUES (value1, value2, value3,...)
The second form defines the column names and values ββto be inserted:
INSERT INTO table_name (column1, column2, column3,...) VALUES (value1, value2, value3,...)
source share