Neo4J 常用查询

删除节点
MATCH(n:IndividualGraph) DETACH
DELETE n

删除关系
match (n)-[r:r:IndividualLicenseRelation]-()
detach delete r

查看节点

MATCH (n:IndividualGraph) RETURN n

查看关系

MATCH p=()-[r:IndividualLicenseRelation]->() RETURN p

统计节点

MATCH (n:IndividualGraph) 
RETURN count(*)

模糊查询

MATCH (n:IndividualGraph) where n.Name =~ '李.*' RETURN n

分页查询

START p = node({id}) MATCH (p:LicenseGraph)-[r:IndividualLicenseRelation]-(t:IndividualGraph) RETURN t skip {page} limit {pageSize}

你可能感兴趣的:(neo4j)