CYPHER查询中的LIKE子句 [英] LIKE clause in CYPHER Query

查看:306
本文介绍了CYPHER查询中的LIKE子句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎在Cypher查询中不支持LIKE.

It appears that LIKE is not supported in Cypher queries.

还有其他可以执行相同任务的结构吗?

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

例如:

start n = node(*) where n.Name LIKE('%SUBSTRING%') return n.Name, n;

推荐答案

使用正则表达式: http://neo4j.com/docs/developer-manual/current/#query-where-正则表达式

start n = node(*) where n.Name =~ '.*SUBSTRING.*' return n.Name, n;

这篇关于CYPHER查询中的LIKE子句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆