2017-09-25 18 views
0

プロパティを設定するためにサブクエリを使用してエッジを作成したいとします。OrientDB selectステートメントを使用してエッジを作成してプロパティを設定する

OvalidationException: 
The field 'HAS.Type' has been declared as LINK but the 
value is not a record or a record-id 

タイプがタイプLINKの財産であることに注意してください:

create edge HAS from #57:0 to #80:3 set Type = (select from A where ID = 1) 

これは私に次のエラーを与える:以下は、私が使用していたクエリです。 ご協力いただきありがとうございます!

答えて

0

次の答えです:

create edge HAS from #57:0 to #80:3 set Type = first((select from A where ID = 1)) 
関連する問題