知识点1——增/CREATE
增加一个节点
CREATE (:Movie {title: 'The Matrix', released: 1997})
//Cypher 会返回更改的数量:Added 1 label, created 1 node, set 2 properties, completed after 84 ms.
//一条标签、一个节点、俩个属性
如果觉得这样返回log不够直观 可以加个 RETURN,将会如下图显示
CREATE (p:Movie {title: '大空头', released: 2001}) RETURN p
//注意这里 不能是匿名变量了,引入了一个p变量名,方便RETURN使用它
一次create多个东西时,可以使用 “,” 分隔多个事物
CREATE (a:Person {name: 'Tom Hanks', born: 1956}),(b:Person {name: 'Robert Zemeckis', born: 1951}) return a,b
CREATE (ee:Person { name: "Emil", from: "Sweden", klout: 99 })
(js:Person { name: "Johan", from: "Sweden", learn: "surfing" }),
(ir:Person { name: "Ian", from: "England", title: "a