赞
踩
MATCH (n:Person) RETURN n;
MATCH(p:Person) DELETE p;
Neo.ClientError.Schema.ConstraintValidationFailed: Cannot delete node<1153>, because it still has relationships. To delete this node, you must first delete its relationships.
MATCH (p1:Person)-[r:LOVES]-(p2:Person)
DELETE p1,p2,r
注意,delete子句的格式是DELETE <node1-name>,<node2-name>,<relationship-name>
剩下的实体关系
MATCH(p:Person)
DETACH DELETE p;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。