neo4j CQL语句
生活随笔
收集整理的這篇文章主要介紹了
neo4j CQL语句
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
擼了今年阿里、頭條和美團(tuán)的面試,我有一個重要發(fā)現(xiàn).......>>>
查詢
match (person:lable1) where person.name='tom' return personmatch (person:lable1{name:"tom"}) return msisdn創(chuàng)建關(guān)系(給tom和jerry創(chuàng)建一個friend關(guān)系)
match (person:label1),(person2:label1) where (person.name="tom") and (person2.name="jerry") create (person)-[relation:friend]->(person2) return (person),(person2)給節(jié)點(diǎn)添加屬性
match (person:label1) where person.name="tom" set person.age="20" return person給關(guān)系添加屬性
match p=()-[r:son]->() set r.source="dataset1" return r刪除關(guān)系
match (person:label1)-[son:relation]->(person2:label1) delete son?
總結(jié)
以上是生活随笔為你收集整理的neo4j CQL语句的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: jena dataset 增删改查
- 下一篇: neo4j 连接java