The following code
@Override
public void onUpgrade(SQLiteDatabase db, int i, int i1) {
db.execSQL("DROP IF TABLE EXISTS " + TABLE_NAME);
onCreate(db);
}
always gives an error index table trigger or view got if
Why is that? I hope anyone can help me.
Drop your Table by using following code
db.execSQL("DROP TABLE IF EXISTS " + YOUR_TABLE);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With