你知道 Neo4j 中是否存在“不包含”吗?
例如:
LOAD CSV WITH HEADERS FROM 'file:///animal.csv' as a fieldterminator "|"
match (b:Animals{animal:a.type})
where not a.type contains 'x' or not a.type contains 'abc'
set b.type=a.type
Run Code Online (Sandbox Code Playgroud)
不幸的是,通过这种方式,代码不起作用。
请注意,包含区分大小写 ,我也会在比赛之前移动 WHERE,那里更便宜
LOAD CSV WITH HEADERS FROM 'file:///animal.csv' as a fieldterminator "|"
WITH a where (not (a.type contains 'x')) or (not (a.type contains 'abc'))
match (b:Animals{animal:a.type})
set b.type=a.type
Run Code Online (Sandbox Code Playgroud)
您还确定您想要一个 OR 而不是 AND 吗?
| 归档时间: |
|
| 查看次数: |
6549 次 |
| 最近记录: |