Android:SQLiteDatabase InsertWithOnConflict API 7

时间:2012-03-05 16:59:17

标签: android sqlite on-duplicate-key

是否有一些简单的方法(比构建自己的查询更容易),如何包含

SQLiteDatabase.insertWithOnConflict();
从v7开始在Android API中

据我所知,自v8以来,这包含在API中。某种兼容性库,会很好。

1 个答案:

答案 0 :(得分:2)

欢迎您复制the implementation of that method from the open source code并根据需要使用它。在撰写本文时,它位于第1667至1725行。