对于neo4j中的两个AND操作之间的OR操作,有没有一种最佳的方法来编写查询。
match(x)-[r]->(y) where y.name="a" with n match(n)--(y) where y.name="b"` OR
match(x)-[r]->(y) where y.name="c" with n match(n)--(y) where y.name="d"`我拿到Neo.ClientError.Statement.SyntaxError了!
发布于 2018-05-18 16:25:21
您是否在搜索类似以下内容的内容:
MATCH (x)-r->(y) WHERE (y.name="a“y.name="b") OR (y.name="c”y.name= y.name="d")返回x,r,y
您只需在where查询中使用括号。
https://stackoverflow.com/questions/50405441
复制相似问题