当前位置:   article > 正文

Neo4j LOAD CSV Error: Query cannot conclude with LOAD CSV_query cannot conclude with load csv (must be a ret

query cannot conclude with load csv (must be a return clause, an update clau

问题:
输入查询语句LOAD CSV WITH HEADERS FROM "file:///hudong_pedia.csv" AS line 报错:
在这里插入图片描述
原因是语句没输全,LOAD CSV应该和CREATE or MERGE结合使用。
例如:

LOAD CSV WITH HEADERS FROM "file:///C:/dir/file.csv" AS row
CREATE (n:Label {attributeName: row.columName});
  • 1
  • 2

参考链接: link.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/610383
推荐阅读
相关标签
  

闽ICP备14008679号