I am trying to insert new data into an SQLite table.
- I know for sure that the insert code is correct because I use it for different tables and it works great
- I know for sure that the database and table are created and exist because I see them in SQLite browser.
But something in the syntax for creating or inserting SQLite is wrong, because I get this error:
SQL error or missing database
Here is my code:
CREATE TABLE IF NOT EXISTS Theory_answers ("questionID" INTEGER,"answerID" INTEGER,"answerText" TEXT, "isTrue" INTEGER) INSERT INTO Theory_answers (questionID, answerID, answerText,isTrue) VALUES ("1","1",text,"0")
source share