代码之家  ›  专栏  ›  技术社区  ›  Robob

OrientDb-执行查询

  •  0
  • Robob  · 技术社区  · 9 年前

    enter image description here

    我想进行一个查询,找到所有只有“a”且没有“B”作为其后代的顶点(c.out('RepositoryEdge')。out('InfoEdge')) 例如,只有顶点#33:53满足此条件

    提前感谢

    1 回复  |  直到 9 年前
        1
  •  2
  •   Michela Bonizzi    9 年前

    试试这个:

    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)
    

    当做