Cypher Query Language
最后发布时间 : 2024-02-01 09:02:14
浏览量 :
建立node
CREATE (TheMatrix:Movie {title:'The Matrix', released:1999, tagline:'Welcome to the Real World'})
CREATE (Keanu:Person {name:'Keanu Reeves', born:1964})
建立relationshi
create (Anders:test {name:"Anders"})
create (Ceasar:test {name:"Ceasar"})
create (Bossman:test {name:"Bossman"})
create (Emil:test {name:"Emil"})
create (David:test {name:"David"})
CREATE
(Anders)-[:KNOWS]->(Bossman),
(Anders)-[:BLOCKS]->(Ceasar),
(Ceasar)-[:KNOWS]->(Emil),
(Bossman)-[:KNOWS]->(Emil),
(Bossman)-[:BLOCKS]->(David),
(Anders)<-[:KNOWS]-(David)