gpt4 book ai didi

regex - "Not like"neo4j 正则表达式

转载 作者:行者123 更新时间:2023-12-02 01:22:43 25 4
gpt4 key购买 nike

我想要在 Neo4j 中相当于 SQL 中的“不喜欢”。

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

我有这个:

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

但这只是“像”,我想要相反的东西。

最佳答案

要排除正则表达式条件的结果,请使用

WHERE NOT ( condition )

参见 3.4.3.4.2. Filter on patterns using NOT :

The NOT function can be used to exclude a pattern.

所以,使用

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

关于regex - "Not like"neo4j 正则表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38993863/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com