2017-01-25 3 views
0

SETを使用して複数のCypher MATCHステートメントを実行するにはどうすればよいですか?私はCypherステートメントを共有しています。SETを使用して複数のCypher MATCHステートメントを実行する

Match (XYZ_Security:MODEL { NodeID: 'd0401381-c1db-41e9-bf08-da686242b988' }) SET XYZ_Security.Name = 'XYZ_Security', XYZ_Security.IsLookup = 'False' 
Match (CUSIP:FIELD { NodeID: 'b6210beb-8fa1-44dc-bd5d-53404dbbed83' }) SET CUSIP.Name = 'CUSIP', CUSIP.IsKeyMember = 'False', CUSIP.IsValueMember = 'False', CUSIP.DataType = 'string', CUSIP.LookupItem = '', CUSIP.ValidationExpressionText = 'CUSIP != null', CUSIP.ValidationExpressionValue = 'true' 

Match (Sedol:FIELD { NodeID: 'cd5c972d-7ae9-4e03-ad52-20375261f8ef' }) SET Sedol.Name = 'Sedol', Sedol.IsKeyMember = 'False', Sedol.IsValueMember = 'False', Sedol.DataType = 'string', Sedol.LookupItem = '', Sedol.ValidationExpressionText = 'Sedol != null', Sedol.ValidationExpressionValue = 'true' 

ありがとうございます。あなたはWITH句でそれらを分離しない限り、 よろしく、 Shafeeque

答えて

0

書き込み操作(SETなど)(MATCHのような)の読み出し動作を続けることができません。続く、あなたが最初にすべてのMATCH句を置くことができ、また

MATCH (XYZ_Security:MODEL { NodeID: 'd0401381-c1db-41e9-bf08-da686242b988' }) 
SET 
    XYZ_Security.Name = 'XYZ_Security', 
    XYZ_Security.IsLookup = 'False' 
WITH 1 AS ignored 
MATCH (CUSIP:FIELD { NodeID: 'b6210beb-8fa1-44dc-bd5d-53404dbbed83' }) 
SET 
    CUSIP.Name = 'CUSIP', 
    CUSIP.IsKeyMember = 'False', 
    CUSIP.IsValueMember = 'False', 
    CUSIP.DataType = 'string', 
    CUSIP.LookupItem = '', 
    CUSIP.ValidationExpressionText = 'CUSIP != null', 
    CUSIP.ValidationExpressionValue = 'true' 
WITH 1 AS ignored 
MATCH (Sedol:FIELD { NodeID: 'cd5c972d-7ae9-4e03-ad52-20375261f8ef' }) 
SET 
    Sedol.Name = 'Sedol', 
    Sedol.IsKeyMember = 'False', 
    Sedol.IsValueMember = 'False', 
    Sedol.DataType = 'string', 
    Sedol.LookupItem = '', 
    Sedol.ValidationExpressionText = 'Sedol != null', 
    Sedol.ValidationExpressionValue = 'true' 

:だから、これは(合格する必要がある値がないため、WITH句は、無視されている値を渡す方法を気づく)動作しますすべてのSET

関連する問題