Android Delete Query

前端 未结 3 1249
北恋
北恋 2020-12-02 02:29

I\'m attempting to delete all rows in one table that do not have a corresponding ID in another table. Since apparently SQLite does not support joins in deletes I am trying

3条回答
  •  执笔经年
    2020-12-02 02:53

    you have to use execSQL instead rawQuery because rawQuiery is used for the statement that returns data and execSQL is used for the statement that doesn't return data like DELETE

提交回复
热议问题