您知道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
不幸的是,这种方式无法使用代码。
答案 0 :(得分:2)
请注意其中包含区分大小写 我还要在比赛前将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
您是否还确定要在那里有一个OR而不是一个AND?