dimanche 3 avril 2016

Sqlite statement insert - wrong column order?

my insert command is

 long insertID = database.insert(TrackDBHelper.TAB_1, null, values); 

TAB_1 is the Name of the table and values are five datas of ContentValues which are correctly put

the error message is

 android.database.sqlite.SQLiteException: no such table: TRACKS (code 1): , while compiling: INSERT INTO TRACKS(Picture,NAME,CHANGE,LANG,Numbers) VALUES (?,?,?,?,?)

But the table names are Name, LANG, Numbers, CHANGE, Picture

I didn't anywhere Change the order of the rows?

Help would be great

Aucun commentaire:

Enregistrer un commentaire