I am trying to remove 6 rows from the database using the following statement but i get the error shown below
getWritableDatabase().execSQL("DELETE FROM tblname ORDER BY _id ASC LIMIT 6;");
Error: Caused by: android.database.sqlite.SQLiteException: near "ORDER": syntax error: DELETE FROM tblname
I tried reformatting the SQL in different ways but i couldn't get it to work. What am i missing? Thanks a lot for your help