我正在尝试使用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 {}
请帮忙。我无法继续下去:(