【发布时间】:2015-08-12 09:59:25
【问题描述】:
我正在使用以下查询在“联系人”表中插入或替换“数字”和“时间”。有什么方法可以在 SQLite for Android 中插入或替换多条记录?
"Insert or replace into Contacts (_id, number, status) values ((select _id from Contacts where number = '123456'), '123456','sent');"
【问题讨论】:
-
@Andrew Fielden,它适用于 Sqlite 而不是 MySql
-
@Andrew Fielden,我已经解决了这个问题,但无法通过插入和替换正确调整它。如果你能举一个插入和替换的例子吗?