0

我正在尝试使用 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 {}

请帮忙。我无法继续进行:(

4

0 回答 0