Android Delete Query

前端 未结 3 1254
北恋
北恋 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 03:03

    You shouldn't use a .rawQuery, as you stated, but you can use .execSQL() to accomplish it. I regularly use it for deletions myself.

提交回复
热议问题