总结一下经验: neo4j中,cypher语句的模糊查询,好像是个正则表达式结构. 对于一个属性的多个模糊查询,可以使用如下写法: 比如,查询N类型中,属性attr包含'a1'或者'a2'的所有节点. match (n:N) where n.attr =~ '.*a1.*|.*a2.*' return n 相对于另外一种写法 match (n:N) where n.attr =~ '.*a1.*' or n.attr =~ '.*a2.*' return n 使用explain,也可以查看出,…
阅读更多 1.删除带有关系的节点 a.先删除关系 match (n:Node)-[r:关系名称]-() where (n...条件) delete r b.删除节点 match (n:Node) where (n...条件) delete n 2.批量更新 :param batch:[{prop1:'property1',prop2:'property2'},{prop1:'property11',prop2:'property22'}] UNWIND $batch as dat…
1,首先写一条能运行成功插入SQL的语句 INSERT INTO sign_guest(realname,phone,email,sign,event_id)VALUES("jack",13800101100,"jack@mail.com",0,1) 2,通过python批量写如文本 f =open('guest.txt','w') for i in range(1,100): str_i = str(i) realname = 'jack' + str_i pho…