我正在尝试使用 ActiveAndroid 对列进行批量更新。这是我的代码:
new Update(SomeModel.class).set("Enabled = 0").execute();
但我得到一个(编辑:我的错,错误在其他地方)。有谁知道如何执行StackOverflowError
. Update()
查询?它在 ActiveAndroid 的 wiki 中没有说明任何内容。
编辑:
这个语法是正确的:
new Update(SomeModel.class)
.set("Enabled = 0")
.where("Account = ?", account.getId())
.execute();
where
如果不需要,您可以跳过。