LIKE clause in CYPHER Query

后端 未结 4 1504
悲哀的现实
悲哀的现实 2021-01-30 20:19

It appears that LIKE is not supported in Cypher queries.

Is there any other construct that would perform the same task?

For instance:

start n =          


        
4条回答
  •  庸人自扰
    2021-01-30 20:53

    No Regexps needed:

    start n = node(*) where n.Name contains "substring" return n.Name, n;
    

    Go to the cypher refcard and scroll down to the Predicates section. You will find this and other useful stuff.

    Want case-insensitive? Convert to lower case:

    start n = node(*) where lower(n.Name) contains lower("substring") return n.Name, n;
    

提交回复
热议问题