NEO4J -模糊查询

  1. 模糊查询
    match(emp) where emp.name =~'.*haha.*' return emp
  2. 现有节点创建关系
MATCH (cust:Customer),(cc:CreditCard) 
CREATE (cust)-[r:DO_SHOPPING_WITH{shopdate:"12/12/2014",price:55000}]->(cc) 
RETURN r
  1. Skip 和limit
MATCH (emp:Employee) 
RETURN emp
SKIP 2 limit 1
  1. where 条件查询
MATCH (emp:Employee) 
WHERE emp.name = 'Abc'
RETURN emp
  1. IN
MATCH (e:Employee) 
WHERE e.id IN [123,124]
RETURN e.id,e.name,e.sal,e.deptno
原文地址:https://blog.csdn.net/qq_32662595/article/details/79876345
posted @ 2019-08-26 09:50  星朝  阅读(2691)  评论(0编辑  收藏  举报