简体   繁体   English

Orientdb中的类型转换

[英]Type conversion in Orientdb

I have a query in Orientdb like this: 我在Orientdb中有这样的查询:

select out('E_MyEdge').@rid, creationUser from V_MyVertex where out('E_MyEdge').@rid <> creationUser

V_MyVertex is a vertex, E_MyEdge is an edge. V_MyVertex是一个顶点,E_MyEdge是一个边。 creationUser is a property of type "LINK" from V_MyVertex, which is an "rid" (something like "#12:4"). creationUser是V_MyVertex的“ LINK”类型的属性,是“ rid”(类似于“#12:4”)。 The problem is both columns from result are kind of "rid", but the query returns also the rows which have the same value (for example #12:117 | #12:117), and I don't know how to exclude them from the result. 问题是结果中的两个列都属于“ rid”,但是查询还会返回具有相同值的行(例如,#12:117 |#12:117),我不知道如何排除它们从结果。

You could use 你可以用

select out('E_MyEdge').@rid, creationUser from V_MyVertex where out('E_MyEdge').@rid NOT IN creationUser

Hope it helps 希望能帮助到你

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

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