Occurs when creating a sqlite database and trying to store values. The SQL statement shouldn't be wrong.
What does this error mean in the first place? As you can see by reading the error code, the specified column does not exist. Is the error.
After this error occurred, I googled and investigated, and it seems that the main causes are as follows.
SQL statement mistake: Due to typos or grammatical mistakes.
onCreate (SQLiteDatabase db) {} Execution timing: Here is what I was addicted to. OnCreate () is also executed when the database is created. If the program runs while the database is still created, onCreate () will not be processed. Therefore, there is no point in fixing the SQL statement used in onCreate (). .. .. The solution is to uninstall the app or delete the database with deleteDatabase ("sample.db") ;.
If you ask me, that's right, but if I'm absent, I'll overlook it. I wonder if there is a pitfall in the basics.