24
06/22
neo4j语法
1. "查"操作 , 查找 id 属性 为 501的节点: MATCH (r:Topic) HERE id(r) =501 RETURN r 增: CREATE(a:Article{title:"txxxxxx"}) return a; 修改: MATCH (r) WHERE id(r) = 501 SET r.test = "testtest" 删除: MATCH (r:Article) WHERE id(r) = 501 DELETE r 建立关系: MATCH (n:Topic{name:'Obesit Supplements'}),(s:Source{name:'Amazon'}) with n,s create (s)-[:BELONG]->(n) 查询不包含某个属性的节点: MATCH ...