3
我希望Neo4j中的SQL不等於「不喜歡」。「不喜歡」neo4j正則表達式
c.Education not like '%High%School%'
我有這樣的:
c.education =~ ".*High.*School.*"
但是,這只是工作的 「喜歡」 和我想的正好相反。
我希望Neo4j中的SQL不等於「不喜歡」。「不喜歡」neo4j正則表達式
c.Education not like '%High%School%'
我有這樣的:
c.education =~ ".*High.*School.*"
但是,這只是工作的 「喜歡」 和我想的正好相反。
要排除的您正則表達式條件的結果,使用
WHERE NOT (condition)
見3.4.3.4.2. Filter on patterns using NOT
:
的
NOT
功能可用於排除模式。
因此,使用
WHERE NOT (c.education =~ ".*High.*School.*")
如果答案被證明是有幫助的,還可以考慮upvoting答案(請參閱[如何在堆棧溢出?](http://meta.stackexchange.com/questions/173399/how-to-upvote-on-stack-overflow) )。 –
你能做到不'(c.education =〜 「*高*學校。*」)'? – nolan
@nolan是的,我可以:)謝謝! – user6712306