NEO4J JDBC添加关系错误

时间:2015-05-19 07:33:32

标签: neo4j cypher neo4j-java-api

我正在尝试使用Neo4J JDBC驱动程序向节点添加关系,并形成以下查询:

MATCH (node1:USER {fameId : 'test1'}),(node2:BEAM {eventUId : 'E000000016'}) 
CREATE (node1)-[r:PERFORMED{type:'test'}]->(node2)`

当我尝试使用以下命令运行此查询时:

mConnection.createStatement().execute("MATCH (node1:USER {fameId : 'test1'}),(node2:BEAM {eventUId : 'E000000016'}) CREATE (node1)-[r:PERFORMED{type:'test'}]->(node2)")

它给了我以下错误:

Error executing query MATCH (node1:USER {fameId : 'test1'}),(node2:BEAM {eventUId : 'E000000016'}) CREATE (node1)-[r:PERFORMED{type:'test'}]->(node2) MATCH (node1:USER {fameId : 'test2'}),(node2:BEAM {eventUId : 'E000000016'}) CREATE (node1)-[r:PERFORMED{type:'test'}]->(node2) with params {}

请帮忙。我无法继续下去:(

0 个答案:

没有答案