Neo4J 图数据库学习-01
1.CREATE (remeo:Person{name:"Remeo"}) - [:LOVES] -> (juliet:Person{name:"Juliet"}) CREATE (juliet) - [:LOVES] -> (remeo) return remeo,juliet;
2.CREATE (remeo:Teen:Person{firstName:"Remeo",lastName:"Montague",age:13}) - [:LOVES{since:"a long time ago",till:"forever",where:"Verona"}] -> (juliet:Teen:Person{name:"Juliet",lastName:"Capulet",age:13})CREATE (remeo) <- [:LOVES] - (juliet)
3.MATCH (n:Person) WHERE n.name="Juliet" or n.firstName="Juliet" return n
4.MATCH (n:Person) - [:LOVES] - () WHERE toLower(n.name) = "juliet" RETURN n ORDER BY n.age ASC SKIP 2 LIMIT 5