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

查看:25
本文介绍了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天全站免登陆