2016-08-17 52 views
3

我希望Neo4j中的SQL不等於「不喜歡」。「不喜歡」neo4j正則表達式

c.Education not like '%High%School%' 

我有這樣的:

c.education =~ ".*High.*School.*" 

但是,這只是工作的 「喜歡」 和我想的正好相反。

+0

你能做到不'(c.education =〜 「*高*學校。*」)'? – nolan

+0

@nolan是的,我可以:)謝謝! – user6712306

回答

2

要排除的您正則表達式條件的結果,使用

WHERE NOT (condition) 

3.4.3.4.2. Filter on patterns using NOT

NOT功能可用於排除模式。

因此,使用

WHERE NOT (c.education =~ ".*High.*School.*") 
+0

如果答案被證明是有幫助的,還可以考慮upvoting答案(請參閱[如何在堆棧溢出?](http://meta.stackexchange.com/questions/173399/how-to-upvote-on-stack-overflow) )。 –

相關問題