领域从两个匹配的表中选择记录(加入)

时间:2018-01-29 07:48:02

标签: android nosql realm

我对Realm-android很新,我有两个表ProspectsProspectCallDetails都有字段token。我想检索Prospectstoken令牌匹配的所有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

0 个答案:

没有答案