Neo4j:Neo4j 中是否存在“不包含”?

raf*_*raf 1 neo4j cypher

你知道 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)

不幸的是,通过这种方式,代码不起作用。

Mic*_*ger 6

请注意,包含区分大小写 ,我也会在比赛之前移动 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 吗?