[关闭]
@songying 2021-01-25T10:21:13.000000Z 字数 311 阅读 547

Neo4j 导入数据

neo4j


http://weikeqin.com/2017/04/14/neo4j-import-data/

  1. LOAD CSV WITH HEADERS FROM "file:///all_word.csv" AS line
  2. MERGE (p:person{id:line.id,word:line.word})
  3. LOAD CSV WITH HEADERS FROM "file:///res.csv" AS line
  4. match (from:person{id:line.from_id}),(to:person{id:line.to_id})
  5. merge (from)-[r:rel{property:line.property}]->(to)
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注