I try to delete 6 rows from the database using the following statement, but I get the error below
getWritableDatabase (). execSQL ("DELETE FROM tblname ORDER BY _id ASC LIMIT 6;");
Error: Called: android.database.sqlite.SQLiteException: next to "ORDER": syntax error: DELETE from tblname
I tried to reformat SQL differently, but I could not get it to work. What am I missing? Many thanks for your help.
source share