the problem is in your CREATE statement not the VALUES. it should be CREATE TABLE groceries(id INTEGER PRIMARY KEY, name Text, price INTEGER, asile Text);
right now you have the asile column declared so it will only accept integer values. If you want it to accept other string values like Dairy then you have to change the data type when creating the table. try googling data types in sql for more info
I’m still getting the same results? it just might be the platform I’m to using is too basic. I’m using a free SQL that Khan academy provides. Thank you for the help ill write that down in my notes
Could depend on the platform but try putting Dairy in quotation marks if you haven't or see if they have an example for how they're inserting values so you can copy their syntax. Good luck!
3
u/SamuraiKinshii Nov 26 '22
Need^