0
我想在Orientdb中创建一些顶点。在SQL中,语法类似于:orient db创建顶点
insert into table1 (col1, col2, foreignKey1) select column1, column2, id from table2
table1和table2之间的关系是一对一的。 我想要做类似的事情在OrientDB(与foreignKey1我将创建边缘)
create vertex table1 <select [...] from table2>
create edge from <@rid of the new created vertex> to <@rid from table2>
你能接受一个JavaScript函数吗? –
是的,我可以接受。 –