I have a the below table script:
"CREATE TABLE " + TABLE_XXX + "("
+ XXX_ID + " INTEGER PRIMARY KEY,"
+ XXX_ITEM_NO + "TEXT,"
+ XXX_DETAILS +"TEXT,"
+ XXX_EXP_DATE + "TEXT,"
+ XXX_IS_OK +"INTEGER, "
+ XXX_CODE + "TEXT"
+ ")";
But when I'm going to insert data getting the error , TABLE_XXX has no column named XXX_IS_OK.
how to overcome it.
Thanks!
onUpgrade()oronCreate()are called?XXX_ITEM_NO + " TEXT,". If no space, then string will be merged, Table will not get created throwing an exception..