我使用的是realm(版本0.87)。我想转换sql查询 Select * from Users where 'firstname' + " "+ 'lastname' like "Ranjana Dangol".
我试过了
RealmQuery<UserEntityData> query = realm.where(UserEntityData.class).beginGroup();
String searchQuery = "Ranjana Dangol"
String[] queries = searchQuery.split("\\s+");
for(String username : queries){
query.equalTo(UserEntityData.FIRST_NAME, username, Case.INSENSITIVE)
.equalTo(UserEntityData.LAST_NAME, username, Case.INSENSITIVE);
}
暂无答案!
目前还没有任何答案,快来回答吧!