简体   繁体   English

OrientDb-进行查询

[英]OrientDb - Conducting a query

I have DB with following schema 我有以下模式的数据库 在此处输入图片说明

I want to conduct a query to find all the vertexes which have only 'A' and dont't have 'B' as their descendant (c.out('RepositoryEdge').out('InfoEdge')) For Specific example only vertex #33:53 satisfies this condion 我想进行查询以查找仅具有“ A”且不具有“ B”作为其后代的所有顶点(c.out('RepositoryEdge')。out('InfoEdge'))仅用于特定示例的顶点#33:53满足这一条件

How Should i Conduct My Query ? 我应该如何进行查询? Thanks in advance 提前致谢

Try this: 尝试这个:

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)

Hope it helps 希望能帮助到你

Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM