我们可以在 orientdb 中 UPSERT 一个 EDGE 吗? [英] Can we UPSERT an EDGE in orientdb?
本文介绍了我们可以在 orientdb 中 UPSERT 一个 EDGE 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能在 orientdb 中获取一个向上插入边的示例.如果它不存在,有没有办法检查边缘是否存在,如果存在,则只需更新边缘,否则创建新边缘.我使用的是 Orientdb 2.1.13 版本.谢谢
Is it possible to get an example to upsert an edge in orientdb. IF it does not exist is there a way to check if the edge exist, if it does then just update the edge else create a new edge. I am using Orientdb 2.1.13 version. Thank you
推荐答案
通过 SQL 你可以使用基本的 UPDATE 命令
via SQL you can use the basic UPDATE command
update written_by SET out = #9:2, in = #16:43, prop="gianni" UPSERT WHERE out = #9:2 and in = #16:43
http://orientdb.com/docs/last/SQL-Update.html
这篇关于我们可以在 orientdb 中 UPSERT 一个 EDGE 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文