【问题标题】:OrientDb - Conducting a queryOrientDb - 进行查询
【发布时间】:2017-08-03 14:08:15
【问题描述】:

我有以下架构的数据库

我想进行查询以查找所有只有“A”且没有“B”作为其后代的顶点 (c.out('RepositoryEdge').out('InfoEdge')) 对于特定示例,只有顶点 #33:53 满足此条件

我应该如何进行查询? 提前致谢

【问题讨论】:

    标签: orientdb orientdb2.2 orientdb-2.1


    【解决方案1】:

    试试这个:

    select from <class-name> where @rid not in (select in("InfoEdge").in("RepositoryEdge") from #42:0) and @rid in (select in("InfoEdge").in("RepositoryEdge") from #41:5)
    

    希望对你有帮助

    问候

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多