OrientDB 使用 select 语句创建边以设置 属性
OrientDB Creating an edge using select statement to set property
我想使用子查询创建边来设置 属性。以下是我正在使用的查询:
create edge HAS from #57:0 to #80:3 set Type = (select from A where ID = 1)
这给了我以下错误:
OvalidationException:
The field 'HAS.Type' has been declared as LINK but the
value is not a record or a record-id
请注意 Type 是 LINK 类型的 属性。
感谢任何帮助!
以下为答案:
create edge HAS from #57:0 to #80:3 set Type = first((select from A where ID = 1))
我想使用子查询创建边来设置 属性。以下是我正在使用的查询:
create edge HAS from #57:0 to #80:3 set Type = (select from A where ID = 1)
这给了我以下错误:
OvalidationException:
The field 'HAS.Type' has been declared as LINK but the
value is not a record or a record-id
请注意 Type 是 LINK 类型的 属性。 感谢任何帮助!
以下为答案:
create edge HAS from #57:0 to #80:3 set Type = first((select from A where ID = 1))