上传节点中的多个属性

时间:2017-05-26 03:34:00

标签: neo4j graph-databases

我正在尝试将包含5个数据属性的csv文件上传到单个节点(公司)。

LOAD CSV WITH HEADERS FROM 'FILE://company1.csv' AS line
MERGE (C:Company {Company: line.Company })
ON CREATE SET
C.Partner = line.Partner
C.Product = line.Product
C.Partner_Value = line.Partner_Value
C.Partners = line.Partners
C.Customers = line.Customers
ON MATCH SET
C.Partner = line.Partner
C.Product = line.Product
C.Partner_Value = line.Partner_Value
C.Partners = line.Partners

我收到以下错误,我不确定原因。

Invalid input '.': expected 'o/O', 'r/R' or 'a/A' (line 5, column 2 
(offset: 188))
"C.Product = line.Product"
^

0 个答案:

没有答案