Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以更新 realmList 的所有元素中的列, 换句话说,可以在领域中执行此操作
update TableX where column1=10 set(column1) values(0);
RealmResults<TableX> results = realm.where(TableX.class).equalTo("column1", 10).findAll(); for(TableX tableX : results) { // since 0.89.0+, previously for(int i = results.size()-1; i >= 0; i--) { tableX.setColumn1(0); }