neo4j教程
1、添加属性
MATCH (n { name: 'k6k4' }) SET n.surname = 'tom' RETURN n
2、删除属性
MATCH (n { name: 'k6k4' }) SET n.name = NULL RETURN n
3、属性复制
MATCH (at { name: 'Andres' }),(pn { name: 'Peter' }) SET at = pn RETURN at, pn
Andres 的属性将会替换成Peter的属性
4、批量修改属性
MATCH (peter { name: 'Peter' }) SET peter += { hungry: TRUE , position: 'Entrepreneur' }
5、替换全部属性
Parameters { "props" : { "name" : "Andres", "position" : "Developer" } } Query MATCH (n { name: 'Andres' }) SET n = { props } RETURN n
6、批量修改属性
MATCH (n { name: 'Andres' }) SET n.position = 'Developer', n.surname = 'Taylor'8、增加标签
MATCH (n { name: 'Stefan' }) SET n :German RETURN n
9、增加多个标签
MATCH (n { name: 'Emil' }) SET n :Swedish:Bossman RETURN n