我对Realm-android很新,我有两个表Prospects
和ProspectCallDetails
都有字段token
。我想检索Prospects
与token
令牌匹配的所有ProspectCallDetails
。
public class Prospects extends RealmObject
{
@PrimaryKey
private int ProspectId;
private String token;
.
.
}
public class ProspectCallDetails extends RealmObject
{
@PrimaryKey
private int ProspectCallId;
private String token;
.
.
}
我想检索所有与ProspectCallDetails令牌匹配的前景,
喜欢在Sql:
Select prop.* from Prospects prop Join PropsectCallDetails callD on prop.token=callD.token